Skip to content

Commit 43cfa7c

Browse files
Dathan Vance Pattishallclaude
andcommitted
fix: grant packages:write permission to Docker publish workflow
GITHUB_TOKEN defaults to read-only for packages. Without packages:write the push to ghcr.io fails with "installation not allowed to Write organization package". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3637253 commit 43cfa7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/dockerpublish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ env:
1919
username: ${{ github.actor }} # This is your GitHub username automatically
2020
password: ${{ secrets.GITHUB_TOKEN }} # No setup required!
2121

22+
permissions:
23+
contents: read
24+
packages: write
25+
2226
jobs:
2327

2428
build_and_publish:

0 commit comments

Comments
 (0)