A tag-triggered workflow needs to assume an AWS role to push to ECR, but STS returns Not authorized to perform sts:AssumeRoleWithWebIdentity. The job uses the production environment, and the role trust checks the audience, the environment-shaped subject, and a tag ref.
The OIDC provider, audience, role ARN, repository name, environment, and id-token permission all appear correct. What else should I check?
Jelwick.3p:
Also check whether the repository or organization has customized the subject claim. That can change the value the trust policy needs to match.