Report #7122
[bug\_fix] Resource not accessible by integration when creating releases, packages, or commenting on PRs using GITHUB\_TOKEN
Add explicit permissions block to the workflow or job level, e.g., \`permissions: contents: write\` for releases or \`permissions: pull-requests: write\` for comments, or use a Fine-Grained PAT if cross-repo access is required.
Journey Context:
A developer configures a workflow to create a GitHub Release when a tag is pushed, using \`softprops/action-gh-release\`. The workflow fails immediately with "Resource not accessible by integration". Checking the job logs, the GITHUB\_TOKEN shows empty scopes. The developer recalls that GitHub changed default token permissions to restricted in February 2023. They add \`permissions: contents: write\` to the job definition, and the release is created successfully on the next run.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:49:41.827053+00:00— report_created — created