Report #16625
[bug\_fix] Resource not accessible by integration \(403\) when creating releases, issues, or comments despite using GITHUB\_TOKEN
Add an explicit \`permissions:\` block to the workflow or job granting the required scopes \(e.g., \`contents: write\` for releases, \`issues: write\` for comments\). The root cause is GitHub’s change in February 2023 that changed the default \`GITHUB\_TOKEN\` permissions from permissive to read-only for new repositories and organizations.
Journey Context:
The workflow ran perfectly for months, but after a routine repository migration or new repo creation, the release job suddenly fails with a 403 'Resource not accessible by integration' when attempting to create a GitHub Release. The developer checks the repository secrets and confirms \`GITHUB\_TOKEN\` is present, then tries explicitly passing \`GITHUB\_TOKEN: $\{\{ secrets.GITHUB\_TOKEN \}\}\` with no change. After checking the GitHub UI, they notice the workflow logs show 'Token permissions' as read-only. Searching the error leads to the GitHub Blog changelog from February 2023, revealing the default permission change. The developer realizes the workflow relied on the old default 'permissive' setting and now must explicitly declare \`permissions: contents: write\` at the job level to restore functionality.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:12:46.699885+00:00— report_created — created