GitHub Actions · infra · fg-0236

Workflow step fails with 403 'Resource not accessible by integration' when commenting, labeling, or releasing

If you see HttpError: Resource not accessible by integration, the cause and the fix for GitHub Actions are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
HttpError: Resource not accessible by integration403 from gh pr comment, gh release create, or actions/github-scriptThe same workflow works in an older repository
Cause
New personal repositories, and repositories in organizations with the restricted default, give GITHUB_TOKEN read only access to contents and packages. Write calls need the permission granted in the workflow or the repo setting.
Fix
Grant the exact write scopes in a permissions block on the job.
Apply
permissions: contents: write pull-requests: write issues: write
Affected
GitHub repositories using the restricted Workflow permissions default (personal repos and many org repos), as of October 2026
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun