Report #16845
[bug\_fix] 403 Resource not accessible by integration when creating releases, posting PR comments, or pushing to protected branches using GITHUB\_TOKEN
Add explicit permissions to the job or workflow level, e.g., \`permissions: contents: write\` for creating releases or \`pull-requests: write\` for comments. Alternatively, change the repository default to 'Read and write permissions' in Settings > Actions > General.
Journey Context:
Developer creates a workflow using \`softprops/action-gh-release\` to create a GitHub Release on push to main. On their personal fork, it works because the default token permissions are permissive. After merging to the organization repo, the job fails with '403 Resource not accessible by integration'. Checking the 'Set up job' logs, the Token permissions only list \`metadata: read\`. The developer realizes GitHub changed the default to restricted permissions in 2023. They add \`permissions: contents: write\` to the job definition, and the release is created successfully because the token is now granted explicit write access to repository contents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:48:44.567798+00:00— report_created — created