remote: Permission to owner/repo.git denied to github-actions[bot]. fatal: unable to access … The requested URL returned error: 403
A GitHub Actions workflow tried to push but the GITHUB_TOKEN doesn’t have write permission.
Seen on:
Git
Meaning
New repositories/organisations default GITHUB_TOKEN to read-only. Grant contents: write in the workflow or repository settings.
Common causes
- GITHUB_TOKEN read-only by default
- Pushing to another repository (needs a PAT or app token)
- Branch protection blocking the bot
⚡ Quick fix
- Add permissions: contents: write to the workflow/job
- Settings → Actions → Workflow permissions → Read and write
- Use a PAT/GitHub App token for other repos
Detailed fix by platform
Git
- bash
permissions: contents: write
How to diagnose
- Token — Which token pushes?
- Permissions — contents: write?
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 2 Oct 2026