Skip to content

Commit d918096

Browse files
authored
Merge pull request #25 from crazy-max/perms
docs: info about packages permissions
2 parents 8e86ef3 + 722486c commit d918096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ on:
3737
permissions:
3838
contents: read
3939
id-token: write # for signing attestation manifests with GitHub OIDC Token
40-
packages: write # needed to push images to GitHub Container Registry
40+
packages: write # only used if pushing to GHCR but needs to be defined as caller must provide permissions ≥ to those used in the reusable workflow
4141
with:
4242
output: ${{ github.event_name != 'pull_request' && 'registry' || 'cacheonly' }}
4343
meta-images: name/app
@@ -105,7 +105,7 @@ on:
105105
permissions:
106106
contents: read
107107
id-token: write # for signing attestation manifests with GitHub OIDC Token
108-
packages: write # needed to push images to GitHub Container Registry
108+
packages: write # only used if pushing to GHCR but needs to be defined as caller must provide permissions ≥ to those used in the reusable workflow
109109
with:
110110
output: ${{ github.event_name != 'pull_request' && 'registry' || 'cacheonly' }}
111111
meta-images: name/app

0 commit comments

Comments
 (0)