Report #88053
[bug\_fix] 403 Resource not accessible by integration when creating release or posting comment
Add explicit permissions at the workflow or job level: \`permissions: contents: write\` \(or \`permissions: write-all\` for broader access\). This grants the GITHUB\_TOKEN the necessary scopes that are now read-only by default.
Journey Context:
Developer creates a release automation workflow triggered on tag push. It uses \`gh release create\` or \`softprops/action-gh-release\`. The job checks out code, builds artifacts, then attempts to create a GitHub Release. It fails with '403 Resource not accessible by integration'. Developer checks repository Settings > Actions > General and sees 'Workflow permissions' is set to 'Read repository contents and packages'. Realizing GitHub changed the default to read-only in 2023 for new repositories, they add \`permissions: contents: write\` to the job, allowing the token to create releases.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:23:06.075044+00:00— report_created — created