GitHub's New OIDC Token Format for Fresh Repos Breaks AWS IAM Trust Policies
GitHub has begun issuing OIDC tokens with a new subject claim format for newly created repositories, embedding numeric organization and repository IDs instead of using plain org/repo names. This change causes AWS IAM trust policies that rely on the classic subject pattern to fail, blocking GitHub Actions workflows from assuming IAM roles via OIDC federation. The error surfaces as a silent trust policy mismatch during the credentials step, with no indication from the GitHub side that anything is wrong. Developers can fix the issue by updating the IAM trust policy's StringLike condition to accept both the legacy and new subject claim formats as a list. Notably, renaming the repository does not resolve the problem, as the embedded numeric IDs are immutable by design and persist through renames.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in