GitHub Actions: Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers
aws-actions/configure-aws-credentials found no usable credentials — no keys, no role to assume, or the OIDC token was not requested.
Credentials could not be loaded, please check your action inputsCould not load credentials from any providersCredentials could not be loadedaws-actions/configure-aws-credentials Could not load credentials Meaning
The action needs either static keys (aws-access-key-id / aws-secret-access-key) or a role with OIDC (role-to-assume) and permissions: id-token: write. Empty secrets, a missing permission block, or a wrong region cause this message.
Common causes
- Secrets empty or missing (forks, wrong environment)
- OIDC used without
permissions: id-token: write role-to-assumemissing or wrong- Missing
aws-regioninput - Job does not have access to the environment holding the secrets
⚡ Quick fix
- Add
permissions: { id-token: write, contents: read }androle-to-assume - Or provide keys from secrets that exist
- Set
aws-region
Detailed fix by platform
GitHub Actions
uses: aws-actions/configure-aws-credentials@v4withrole-to-assume: arn:aws:iam::123456789012:role/gha-deployandaws-region: eu-west-1
Code examples
OIDC to AWS
permissions:
id-token: write
contents: read
steps:
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::123456789012:role/gha-deploy
aws-region: eu-west-1How to diagnose
- Method — OIDC role or static keys?
- Permissions — id-token: write?
- Inputs — region and role set?
🔧 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
- Cannot perform an interactive login from a non TTY device GitHub Actions: Error: Cannot perform an interactive login from a non TTY device
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
- Resource not accessible by integration GitHub Actions: Error: Resource not accessible by integration (403)
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