Report #83558
[bug\_fix] Resource not accessible by integration \(403\) when creating releases, packages, or commenting on PRs using GITHUB\_TOKEN
Explicitly declare the required permissions in the workflow YAML using the \`permissions\` key \(e.g., \`permissions: contents: write\`, \`packages: write\`, \`pull-requests: write\`\) or change the repository default setting to Read/Write under Settings > Actions > General > Workflow permissions.
Journey Context:
A developer pushes a new Git tag to trigger a release workflow that uses \`actions/create-release\`. The job fails immediately with a 403 Forbidden error stating "Resource not accessible by integration" when attempting to POST to the GitHub Releases API. The developer verifies the \`GITHUB\_TOKEN\` is present and has not expired. They check the repository's Actions settings and discover that the default workflow permissions were changed to read-only \(the secure default since February 2023\). They realize the token lacks \`contents: write\` permission. Instead of changing the global repository setting \(which affects all workflows\), they add \`permissions: contents: write\` specifically to the release job in the workflow file. On the next run, the token is granted write access only for that job, and the release is created successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:50:28.667899+00:00— report_created — created