fix: immutable subject claim - #138
Merged
Merged
Conversation
Contributor
Author
|
It looks as if #135 is in a similar but unrelated area. I suggest that the two changes are combined. (Daniel's change is compensating for variance in username / org name case, as opposed to the immutable claim format, but they both change the subject.) |
Use data.github_organization.alz.login instead of var.organization_name when constructing OIDC subject claims for federated credentials. This preserves exact org casing in the repo: segment to match GitHub token assertions and avoid AADSTS7002138 case-sensitive matching failures. Also lower-case the org in job_workflow_ref template composition to align with observed GitHub token behavior for reusable workflow refs.
Y1ngJ1eChen
requested review from
Y1ngJ1eChen and
Zhangqi910
and removed request for
Y1ngJ1eChen and
Zhangqi910
July 30, 2026 05:36
Generate both legacy name-based and immutable ID-based GitHub Actions OIDC subject claims for each workflow and environment mapping. Keep the legacy subject on the existing key and add an immutable subject with a distinct key. This preserves authentication for existing repositories while supporting repositories that use GitHub's immutable OIDC subject format.
Zhangqi910
approved these changes
Jul 31, 2026
yeddlapurishivasai
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview/Summary
Updated federated credential subjects for immutable organization and repo references, meeting the requirement for the GitHub platform change in https://github.blog/changelog/2026-04-23-immutable-subject-claims-for-github-actions-oidc-tokens
This PR fixes/adds/changes/removes
Breaking Changes
Testing Evidence
As part of this Pull Request I have
mainbranch