Credentials could not be loaded CI/CD Origin: Build & delivery Last updated 25 Oct 2026

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.

Exact message you may see 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
Seen on: GitHub Actions

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-assume missing or wrong
  • Missing aws-region input
  • Job does not have access to the environment holding the secrets

⚡ Quick fix

  1. Add permissions: { id-token: write, contents: read } and role-to-assume
  2. Or provide keys from secrets that exist
  3. Set aws-region

Detailed fix by platform

GitHub Actions

  1. uses: aws-actions/configure-aws-credentials@v4 with role-to-assume: arn:aws:iam::123456789012:role/gha-deploy and aws-region: eu-west-1

Code examples

OIDC to AWS

yaml
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-1

How to diagnose

  1. Method — OIDC role or static keys?
  2. Permissions — id-token: write?
  3. 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:

Where this error sits

Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):

API rate limit exceeded — GitHub Actions: HttpError: API rate limit exceeded for installation ID 123456 / secondary rate limit (CI/CD)API rate limit exceed…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 (CI/CD)Cache not found / Una…Cannot perform an interactive login from a non TTY device — GitHub Actions: Error: Cannot perform an interactive login from a non TTY device (CI/CD)Cannot perform an int…Context access might be invalid — GitHub Actions: Context access might be invalid: AWS_ACCESS_KEY_ID (editor warning for secrets/vars) (CI/CD)Context access might …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) (CI/CD)couldn't find remote …deprecated version of actions/upload-artifact — GitHub Actions: Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v3` (CI/CD)deprecated version of…error parsing called workflow — GitHub Actions: error parsing called workflow ".github/workflows/ci.yml" -> "org/repo/.github/workflows/build.yml@main": workflow was not found (CI/CD)error parsing called …exceeded the maximum execution time — GitHub Actions: The job running on runner GitHub Actions 12 has exceeded the maximum execution time of 360 minutes (CI/CD)exceeded the maximum …Credentia…

Explore the map of this error Full error map →

🧠 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.