GitHub Actions: Error: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable
A step tried to get an OIDC token (for AWS, Azure, GCP, Vault) but the job was not granted id-token: write permission.
Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variableUnable to get ACTIONS_ID_TOKEN_REQUEST_TOKENid-token: write permission missingError: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL Meaning
OIDC tokens are only issued when the workflow or job sets permissions: id-token: write. Reusable workflows and fork pull requests may not receive the token at all. When you set permissions at all, unlisted permissions become none, so remember contents: read too.
Common causes
permissions: id-token: writemissing at workflow or job level- Permissions block overriding defaults without
id-token - Pull request from a fork (OIDC not available)
- Calling a reusable workflow without passing permissions
- Self-hosted GitHub Enterprise Server without OIDC enabled
⚡ Quick fix
- Add
id-token: write(andcontents: read) inpermissions - Do not use OIDC on fork PR jobs
- Pass permissions down when calling reusable workflows
Detailed fix by platform
GitHub Actions
- Job-level:
permissions: { id-token: write, contents: read }
Code examples
Permissions for OIDC
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # required to request the OIDC token
contents: read
steps:
- uses: actions/checkout@v4How to diagnose
- Permissions — Is id-token: write set for this job?
- Source — Fork PR?
- Reusable — Passed to the called workflow?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- API rate limit exceeded GitHub Actions: HttpError: API rate limit exceeded for installation ID 123456 / secondary rate limit
- Cache not found / Unable to reserve cache GitHub Actions: Cache not found for input keys: npm-Linux-abc123 / Failed to save: Unable to reserve cache with key, another job may be creating this cache
- couldn't find remote ref (checkout) GitHub Actions: fatal: couldn't find remote ref refs/heads/feature — The process '/usr/bin/git' failed with exit code 1 (actions/checkout)
Most viewed in CI/CD
- The process '/usr/bin/git' failed with exit code 128 GitHub Actions: Error: The process '/usr/bin/git' failed with exit code 128
- This job is stuck because you don't have any active runners GitLab CI: This job is stuck because you don't have any active runners online or available with any of these tags assigned to them
- ComparisonError: manifest generation failed Argo CD: ComparisonError: rpc error: code = Unknown desc = Manifest generation error (cached): kustomize build failed
Other ways to find it
Where this error sits
Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):
🧠 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.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 25 Oct 2026