Repository navigation
Use GitHub App for VMR artifact comparison - #9688
Merged
akoeplinger merged 10 commits intoOct 2, 2026
Merged
Conversation
Replace the shared classic PAT with repository-restricted installation tokens for dotnet, NuGet, and microsoft repositories. Co-authored-by: Copilot <[email protected]> Copilot-Session: ca981fa5-8dc6-4a81-91a0-d9205e10180f
Co-authored-by: Copilot <[email protected]> Copilot-Session: ca981fa5-8dc6-4a81-91a0-d9205e10180f
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: Copilot <[email protected]> Copilot-Session: ca981fa5-8dc6-4a81-91a0-d9205e10180f
Co-authored-by: Copilot <[email protected]> Copilot-Session: ca981fa5-8dc6-4a81-91a0-d9205e10180f
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Installation tokens may expire during the 180-minute job and require refresh or bounded retry.
Review effort: Lite
Findings: None
What changed in this PR
Replaces the VMR artifact-comparison pipeline’s shared PAT with scoped GitHub App installation tokens.
Changes:
- Adds owner/repository token routing with fail-closed validation.
- Uses the Arcade helper to mint separate installation tokens.
- Removes PAT dependencies and makes gather failures fatal.
- Adds authentication-flow tests.
| File | Summary |
|---|---|
eng/VmrGitHubAuthentication.psm1 |
Repository validation and token routing |
eng/tests/VmrGitHubAppToken.Tests.ps1 |
Authentication-flow regression tests |
eng/pipelines/templates/steps/vmr-compare.yml |
GitHub App token acquisition and pipeline integration; long-running jobs need token refresh or retry |
eng/pipelines/templates/stages/vmr-compare.yml |
Removes the PAT variable group |
eng/GatherDrops.ps1 |
Uses routed tokens and fails on gather errors |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
mmitche
reviewed
Sep 30, 2026
mmitche
reviewed
Sep 30, 2026
mmitche
reviewed
Sep 30, 2026
mmitche
reviewed
Sep 30, 2026
Remove the temporary workflow regression script and document the installation-token lifetime and helper-path constraint. Co-authored-by: Copilot <[email protected]> Copilot-Session: 8a2c76b3-5196-4de4-85bf-a838c46d5b71
Member
Author
mmitche
approved these changes
Oct 1, 2026
This was referenced Oct 12, 2026
This was referenced Oct 19, 2026
This was referenced Oct 21, 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.
Intent
Replace the shared
BotAccount-dotnet-bot-repo-PATused by the VMR artifact-comparison pipeline with short-lived, least-privilege GitHub App installation tokens.Related work items:
eng/commonafter the next bootstrap update.Changes
dotnet,NuGet, andmicrosoftApp installations through the dedicated WIF service connection.src/arcade/eng/common/Get-GitHubAppToken.ps1helper until the next Arcade bootstrap refreshes rooteng/common.Contents: readpermission and each installation's selected-repository boundary.darc gather-dropfailures fatal instead of continuing silently.Validation
Pipeline 1447 build 3087000 validated this exact commit (
3f9c07bba3496271d048e23caf51548e881ed081):dotnet,NuGet, andmicrosoftusing the flowed Arcade helper.401, or403responses.eng/commonfiles.The overall canary later failed in the unrelated asset-comparison step because the selected unified build contains 126 non-baselined
AssemblyVersionMismatchfindings. The authentication and Gather Drop steps completed successfully.