Skip to content

Commit e2ebcb3

Browse files
committed
explicit permissions
1 parent 4345bed commit e2ebcb3

4 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/build_all_images.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ name: build_all_images
1111
NO_CACHE:
1212
required: true
1313
type: boolean
14-
permissions: {}
14+
permissions:
15+
attestations: write
16+
contents: read
17+
packages: write
18+
id-token: write
1519
jobs:
1620
discover_folders:
1721
runs-on: ubuntu-latest

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
needs:
3737
- tag_release
3838
uses: ./.github/workflows/build_all_images.yml
39+
permissions:
40+
attestations: write
41+
contents: read
42+
packages: write
43+
id-token: write
3944
with:
4045
docker_tag: 'ci-${{ needs.tag_release.outputs.version_tag }}'
4146
tag_latest: false

.github/workflows/pull_request.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ jobs:
8181
- get_issue_number
8282
- get_commit_id
8383
uses: ./.github/workflows/build_all_images.yml
84+
permissions:
85+
attestations: write
86+
contents: read
87+
packages: write
88+
id-token: write
8489
with:
8590
docker_tag: 'pr-${{ needs.get_issue_number.outputs.issue_number }}-${{ needs.get_commit_id.outputs.sha_short }}'
8691
tag_latest: false

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
needs:
4040
- tag_release
4141
uses: ./.github/workflows/build_all_images.yml
42+
permissions:
43+
attestations: write
44+
contents: read
45+
packages: write
46+
id-token: write
4247
with:
4348
docker_tag: '${{ needs.tag_release.outputs.version_tag }}'
4449
tag_latest: true

0 commit comments

Comments
 (0)