Report #27442
[bug\_fix] Resource not accessible by integration \(HTTP 403\) when creating releases, issues, or comments using GITHUB\_TOKEN
Add explicit \`permissions:\` block at workflow or job level \(e.g., \`permissions: contents: write pull-requests: write\`\). Root cause: GitHub changed the default GITHUB\_TOKEN permissions to read-only for new repositories and organizations in February 2023; workflows must now explicitly declare write capabilities.
Journey Context:
Developer sets up a workflow using \`softprops/action-gh-release\` to create a release on tag push. The job fails with "Resource not accessible by integration". They verify the GITHUB\_TOKEN is present in secrets and try explicitly passing it via env vars, but the 403 persists. Searching the error leads to a GitHub blog post from February 2023 announcing the change to restricted default permissions. Inspecting the repository settings under "Actions > General > Workflow permissions" confirms it is set to "Read repository contents". The developer adds \`permissions: contents: write\` to the job definition, granting the token explicit write access to create releases, and the workflow succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:27:29.054359+00:00— report_created — created