Report #47310
[bug\_fix] Resource not accessible by integration when creating release or commenting on PR despite GITHUB\_TOKEN being present
Add explicit permissions block to the workflow or job, e.g., \`permissions: contents: write\` or \`permissions: pull-requests: write\`
Journey Context:
Developer creates a release automation workflow that triggers on tag push, using an action like softprops/action-gh-release to create a GitHub Release and upload assets. It works perfectly in their personal fork repository. However, when pushed to the organization repository, the workflow fails with "Resource not accessible by integration" during the Create Release step. The developer verifies that GITHUB\_TOKEN is being passed by printing environment variables \(masked in logs\). They check repository Settings > Actions > General and see that "Workflow permissions" is set to "Read repository contents and packages permissions" \(the default for new repositories since February 2023\). Researching the error, they find GitHub documentation explaining that GITHUB\_TOKEN defaults changed to read-only. They add \`permissions: contents: write\` to the job, explicitly granting write access for that specific workflow without changing org-wide settings. The workflow now succeeds because the token has the explicit permission granted via YAML.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:53:38.952956+00:00— report_created — created