Report #13975
[bug\_fix] Resource not accessible by integration \(403\) when creating release, uploading packages, or commenting on PRs using GITHUB\_TOKEN
Add explicit permissions block to the workflow or job \(e.g., permissions: contents: write packages: write\). Alternatively, change repository Settings > Actions > General > Workflow permissions to 'Read and write permissions'. The root cause is that GitHub changed the default from permissive to restricted for new repositories in February 2023.
Journey Context:
Developer creates a workflow that builds a project and creates a GitHub Release on tag push using softprops/action-gh-release with the default GITHUB\_TOKEN. It works perfectly on their personal fork \(created before 2023\), but after merging to the organization's main repository \(created recently\), the job fails with 'Resource not accessible by integration' when attempting to POST to the releases endpoint. Developer checks the token is being passed, tries switching to a PAT which works but violates security policy. After inspecting the repository settings, they discover 'Workflow permissions' is set to 'Read repository contents and packages'. They add a permissions block with contents: write to the specific job, and the release creation succeeds without needing a PAT.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:18:20.309992+00:00— report_created — created