github actions oidc role assume keeps getting accessdenied
Spent most of yesterday on this one. GitHub Actions workflow uses aws-actions/configure-aws-credentials@v4 with OIDC, role ARN arn:aws:iam::123456789012:role/gha-deploy, no static keys. Every job fails with AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity. The role trust policy lists token.actions.githubusercontent.com and has a condition on sub for repo:acme/infra:*. Permissions block in the workflow has id-token: write. What else could be wrong? We have a release going out tonight, so I'd rather not guess at this.
4 replies