GitHub Actions · api · fg-0014

Committing a workflow file through the API returns 403 'Resource not accessible by personal access token'

If you see 403 Resource not accessible by personal access token, the cause and the fix for GitHub Actions are below, last verified 2026-08-26.

Verified Aug 2026trust 50/100
Symptom
403 Resource not accessible by personal access tokenOther files commit fine with the same token
Cause
Writing files under .github/workflows requires the workflow scope on the token.
Fix
Use a token with the workflow scope, or commit the workflow by hand.
Apply
Classic PAT: tick workflow. Fine-grained PAT: Repository permissions > Workflows: Read and write
Affected
GitHub REST API, August 2026

Last verified 2026-08-26 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

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