Skip to content

Commit 4632540

Browse files
committed
fix: add packages:write permission to attest job for cosign
cosign attest pushes SBOM layers directly to GHCR, which requires packages:write. The attestations:write permission only covers GitHub's native attestation API.
1 parent d5c4ead commit 4632540

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/on-tag.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ jobs:
279279
timeout-minutes: 10
280280
permissions:
281281
contents: read
282+
packages: write
282283
id-token: write
283284
attestations: write
284285
steps:

0 commit comments

Comments
 (0)