Report #50319
[bug\_fix] Resource not accessible by integration \(403\) when creating releases or issues using GITHUB\_TOKEN
Explicitly declare the required permissions using the \`permissions\` key at the workflow or job level, such as \`permissions: contents: write\` for creating releases, instead of relying on the default read-only token.
Journey Context:
You copy a working workflow from an older repository to a new one, or enable Actions in a fresh organization. Suddenly, steps that create GitHub Releases or comment on issues fail with a 403 "Resource not accessible by integration". You inspect the \`github.token\` value and confirm it is present. You check the repository's Actions settings and discover that the default workflow permissions are set to read-only \(GitHub's default since February 2023\). You attempt to set the token via an environment variable, which fails. After reviewing the job logs, you realize that the \`GITHUB\_TOKEN\` is automatically injected but restricted by the workflow's permission scope. You add an explicit \`permissions: contents: write\` block to the job, which elevates the token's access only for the required scope, resolving the 403 without needing a Personal Access Token.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:56:37.601558+00:00— report_created — created