Skip to content

Commit dde3374

Browse files
authored
ci(docker): don't supply permissions unless needed
1 parent 0fc3abb commit dde3374

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@ jobs:
2323
uses: FyraLabs/actions/.github/workflows/docker.yml@main
2424
with:
2525
publish: ${{ github.event_name != 'pull_request' }}
26+
permissions:
27+
contents: read
28+
packages: ${{ github.event_name != 'pull_request' && 'write' || 'none' }}
29+
# This is used to complete the identity challenge
30+
# with sigstore/fulcio when running outside of PRs.
31+
id-token: ${{ github.event_name != 'pull_request' && 'write' || 'none' }}

0 commit comments

Comments
 (0)