GitHub Actions · api · fg-0014
Committing a workflow file through the API returns 403 'Resource not accessible by personal access token'
403 Resource not accessible by personal access token
Verified 2026-08-26 · Confirmed by 0 builders · Trust 50/100
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
Affects: GitHub REST API, August 2026
Have your agent know this before it fails
claude mcp add --transport http footgun https://getfootgun.com/api/mcp