OIDC with a custom `sub` template stopped working for every repo after an org change.
AdvancedTroubleshootingOIDC & Cloud Authentication
Answer
Likely causes → Someone customized the org OIDC sub claim (for example to include job_workflow_ref), changing the format for all repos that use the default, so existing trust policies no longer match.
Diagnose →
gh api orgs/devopsshack/actions/oidc/customization/sub
gh api repos/devopsshack/shack-api/actions/oidc/customization/sub
Fix → Revert, or opt specific repos back to default (use_default: true), then migrate trust policies deliberately.
Prevent → Treat the sub template as a breaking API change with a migration plan.
More on OIDC & Cloud Authentication
`Error: Could not assume role with OIDC: Not authorized to perform sts:AssumeRoleWithWebIdentity`Advanced`Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers`Intermediate`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`Beginner