Report #45413
[bug\_fix] Resource not accessible by integration \(403\) when creating release or pushing package via GITHUB\_TOKEN
Explicitly declare the job permissions block with \`permissions: contents: write\` \(for releases\) or \`packages: write\` \(for GHCR/Package Registry\). The default \`GITHUB\_TOKEN\` now defaults to read-only for new repositories since early 2023.
Journey Context:
A developer configures a workflow to build a Docker image and push to GHCR using \`docker/build-push-action\`. The push step fails with 'denied: installation not allowed to Write organization package' or a 403 'Resource not accessible by integration'. The developer verifies they are an admin on the repository, checks that the package settings allow the repository access, and even tries explicitly passing \`github-token: $\{\{ secrets.GITHUB\_TOKEN \}\}\`, all to no avail. After searching the error, they discover that GitHub changed the default workflow permissions to read-only. The fix requires adding a \`permissions:\` block at the job or workflow level to explicitly grant write access to the token.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:41:52.129417+00:00— report_created — created