Skip to content

Commit db875d0

Browse files
committed
chore: update GitHub Actions workflow to set permissions for contents, packages, and id-token
1 parent 0774be6 commit db875d0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
env:
99
GIT_COMMIT: ${{ github.sha }}
1010

11+
permissions:
12+
contents: read
13+
packages: write
14+
id-token: write
15+
1116
jobs:
1217
prepare:
1318
runs-on: ubuntu-latest
@@ -25,6 +30,7 @@ jobs:
2530
files: docker-bake.hcl
2631
stack:
2732
runs-on: ubuntu-latest
33+
2834
strategy:
2935
matrix:
3036
target:
@@ -77,10 +83,6 @@ jobs:
7783

7884
validate:
7985
runs-on: ubuntu-latest
80-
permissions:
81-
contents: read
82-
packages: write
83-
id-token: write
8486
needs:
8587
- prepare
8688
- stack

0 commit comments

Comments
 (0)