Skip to content

Commit 6492023

Browse files
committed
unset packages permission in reusable workflows
Signed-off-by: CrazyMax <[email protected]>
1 parent 0641b7b commit 6492023

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

.github/workflows/.test.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
permissions:
2424
contents: read
2525
id-token: write
26-
packages: none
2726
with:
2827
output: image
2928
push: ${{ github.event_name != 'pull_request' }}
@@ -58,7 +57,6 @@ jobs:
5857
permissions:
5958
contents: read
6059
id-token: write
61-
packages: none
6260
with:
6361
output: image
6462
push: ${{ github.event_name != 'pull_request' }}
@@ -129,7 +127,6 @@ jobs:
129127
permissions:
130128
contents: read
131129
id-token: write
132-
packages: none
133130
with:
134131
output: image
135132
push: ${{ github.event_name != 'pull_request' }}
@@ -163,7 +160,6 @@ jobs:
163160
permissions:
164161
contents: read
165162
id-token: write
166-
packages: none
167163
with:
168164
output: image
169165
push: ${{ github.event_name != 'pull_request' }}
@@ -240,7 +236,6 @@ jobs:
240236
permissions:
241237
contents: read
242238
id-token: write
243-
packages: none
244239
with:
245240
output: local
246241
push: ${{ github.event_name != 'pull_request' }}
@@ -262,7 +257,6 @@ jobs:
262257
permissions:
263258
contents: read
264259
id-token: write
265-
packages: none
266260
with:
267261
output: local
268262
push: ${{ github.event_name != 'pull_request' }}
@@ -283,7 +277,6 @@ jobs:
283277
permissions:
284278
contents: read
285279
id-token: write
286-
packages: none
287280
with:
288281
runner: amd64
289282
output: image
@@ -299,7 +292,6 @@ jobs:
299292
permissions:
300293
contents: read
301294
id-token: write
302-
packages: none
303295
with:
304296
context: test
305297
target: hello
@@ -336,7 +328,6 @@ jobs:
336328
permissions:
337329
contents: read
338330
id-token: write
339-
packages: none
340331
with:
341332
context: test
342333
target: hello-cross
@@ -417,7 +408,6 @@ jobs:
417408
permissions:
418409
contents: read
419410
id-token: write
420-
packages: none
421411
with:
422412
context: test
423413
target: hello-cross
@@ -440,7 +430,6 @@ jobs:
440430
permissions:
441431
contents: read
442432
id-token: write
443-
packages: none
444433
with:
445434
context: test
446435
target: hello
@@ -463,7 +452,6 @@ jobs:
463452
permissions:
464453
contents: read
465454
id-token: write
466-
packages: none
467455
with:
468456
runner: amd64
469457
context: test

.github/workflows/bake.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ jobs:
276276
permissions:
277277
contents: read
278278
id-token: write # for signing attestation manifests and/or registry authentication with GitHub OIDC Token
279-
packages: write # for pushing manifests to GHCR if needed
280279
strategy:
281280
fail-fast: false
282281
matrix:
@@ -660,7 +659,6 @@ jobs:
660659
permissions:
661660
contents: read
662661
id-token: write # for registry authentication with OIDC if needed
663-
packages: write # for pushing to GHCR when merging manifests if needed
664662
outputs:
665663
cosign-version: ${{ env.COSIGN_VERSION }}
666664
cosign-verify-commands: ${{ steps.set.outputs.cosign-verify-commands }}

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ jobs:
230230
permissions:
231231
contents: read
232232
id-token: write # for signing attestation manifests and/or registry authentication with GitHub OIDC Token
233-
packages: write # for pushing manifests to GHCR if needed
234233
strategy:
235234
fail-fast: false
236235
matrix:
@@ -554,7 +553,6 @@ jobs:
554553
permissions:
555554
contents: read
556555
id-token: write # for registry authentication with OIDC if needed
557-
packages: write # for pushing to GHCR when merging manifests if needed
558556
outputs:
559557
cosign-version: ${{ env.COSIGN_VERSION }}
560558
cosign-verify-commands: ${{ steps.set.outputs.cosign-verify-commands }}

0 commit comments

Comments
 (0)