Repository navigation
Fix OneLoc GitHub App token handling - #17263
Merged
missymessa merged 2 commits intoAug 6, 2026
Merged
Conversation
Address review feedback by reading the Key Vault signature deterministically, paginating installation lookup, preserving 1ES template context, and clarifying installation token scope. Co-authored-by: Copilot <[email protected]> Copilot-Session: cf5c9dac-de56-477f-9858-541b9fec0178
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the OneLoc GitHub App authentication flow to make token minting and installation selection more reliable across Key Vault/Azure CLI output formats and GitHub installation pagination, while keeping pipelines correctly routed through the core templates (including 1ES context propagation).
Changes:
- Read Key Vault sign output deterministically via
--query value --output tsvto avoid brittle JSON parsing. - Page through GitHub App installations and match the target owner case-insensitively.
- Route OneLocBuild through the core
get-github-app-token.ymlstep and propagateis1ESPipeline; clarify repo access is governed by the GitHub App installation configuration.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| eng/common/Get-GitHubAppToken.ps1 | Stabilizes Key Vault signature retrieval and improves GitHub App installation lookup (paging + case-insensitive owner match). |
| eng/common/core-templates/job/onelocbuild.yml | Switches to core token-minting step template and forwards is1ESPipeline to preserve pipeline context. |
| Documentation/OneLocBuildGitHubApp.md | Clarifies that repo access is determined by GitHub App installation configuration; updates template link. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+111
to
+113
| $installations += $pageInstallations | ||
| $page++ | ||
| } while ($pageInstallations.Count -eq 100) |
akoeplinger
approved these changes
Aug 6, 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.
Follow-up to #17258. This applies the same review fixes as the release/10.0 and release/9.0 backports (#17261 and #17262).
valuewith TSV output.Validation:
git diff --check