Skip to content

Commit cc3d151

Browse files
OlegOptimumCode
authored andcommitted
Provide required permissions for reusable workflow
1 parent 1c3a11b commit cc3d151

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
build:
4747
needs: meta
4848

49+
permissions:
50+
id-token: write
51+
contents: read
52+
attestations: write
53+
packages: write
54+
4955
uses: ./.github/workflows/build-image.yml
5056
with:
5157
image-name: ${{ needs.meta.outputs.implementation-name }}
@@ -113,6 +119,12 @@ jobs:
113119
publish-on-automerge:
114120
needs: [meta, automerge]
115121

122+
permissions:
123+
id-token: write
124+
contents: read
125+
attestations: write
126+
packages: write
127+
116128
uses: ./.github/workflows/build-image.yml
117129
with:
118130
image-name: ${{ needs.meta.outputs.implementation-name }}

0 commit comments

Comments
 (0)