Report #15834
[bug\_fix] Resource not accessible by integration \(403\) when creating release, PR, or commenting
Add explicit permissions block at workflow or job level with contents: write and pull-requests: write \(or specific permissions required\)
Journey Context:
Developer configures a workflow to automatically create a GitHub Release when a tag is pushed, using github-actions/create-release or gh cli. The workflow fails with 'Resource not accessible by integration' or a 403 Forbidden error. Developer checks the repository settings and confirms GitHub Actions is enabled. After investigating, they discover that GitHub changed the default GITHUB\_TOKEN permissions to restrictive \(read-only\) for new repositories and organizations starting in 2023. The developer adds a permissions block at the workflow level: \`permissions: contents: write\` \(and \`pull-requests: write\` if needed\). The workflow now succeeds because the token is explicitly granted the necessary scopes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T01:13:25.092212+00:00— report_created — created