Repository navigation
fix: use usernames and remove email approvers - #147
Merged
Qi Zhang (Zhangqi910) merged 1 commit intoOct 10, 2026
Merged
Conversation
Akshay Rohilla (akshayrohilla)
approved these changes
Oct 10, 2026
Qi Zhang (Zhangqi910)
deleted the
fix/4157-remove-github-email-approvers
branch
October 10, 2026 03:10
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
This PR fixes Bug #4157(Azure/Azure-Landing-Zones#4157) by removing email address support for GitHub approvers in the Terraform bootstrap module.
The current GitHub approver implementation supports resolving approvers using either a GitHub username or an email address. The email-based approach has been causing intermittent issues during GitHub bootstrap.
As requested in the issue discussion, this change removes the email-based approver lookup and makes GitHub username the supported approver identifier.
Changes
GitHub approver validation
modules/github/team.tf.user.emailwhen resolving GitHub approvers.Approver configuration behavior
GitHub approvers are now expected to be provided using their GitHub usernames.
For example:
Email addresses are no longer supported as GitHub approver identifiers.
Tests and validation
Terraform validation
The following checks were completed successfully:
terraform fmt -check -recursiveterraform validategit diff --checkApprover regression testing
The updated approver resolution and validation logic was tested with the following scenarios:
The test data included a GitHub user represented as:
The
emailvalue was intentionally left empty to verify that the updated approver resolution relies on the GitHub username and does not use the email field.The change is limited to
modules/github/team.tf.