`Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers`
IntermediateTroubleshootingOIDC & Cloud Authentication
Answer
Likely causes → The job lacks id-token: write, so configure-aws-credentials cannot get an OIDC token and falls back to looking for keys; or role-to-assume is empty (a variable not set in this environment).
Diagnose → Check permissions and that vars.DEPLOY_ROLE_ARN resolves (print it, it is not secret).
Fix → Add permissions: id-token: write (plus contents: read) and set the variable at the correct level.
Prevent → Fail fast: test -n "$ROLE_ARN" || { echo "::error::DEPLOY_ROLE_ARN not set"; exit 1; }.
More on OIDC & Cloud Authentication
`Error: Could not assume role with OIDC: Not authorized to perform sts:AssumeRoleWithWebIdentity`Advanced`Error: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable`BeginnerOIDC works on `main` but fails on a tag-triggered release workflow.Intermediate`An error occurred (AccessDenied) when calling the AssumeRoleWithWebIdentity operation: Incorrect token audience`Intermediate`No OpenIDConnect provider found in your account for https://token.actions.githubusercontent.com`BeginnerAfter assuming the role, `aws ecr get-login-password` works but push fails: `denied: User: arn:aws:sts::111122223333:assumed-role/gha-ecr-push/gha-123 is not authorized to perform: ecr:InitiateLayerUpload on resource: arn:aws:ecr:ap-south-1:111122223333:repository/shack-api`Intermediate