Repository navigation
[release/10.0] Enable OneLoc GitHub App authentication by default - #17261
Merged
missymessa merged 4 commits intoAug 6, 2026
Merged
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: a2aa4598-efc5-44f4-a67b-7db19982252d Copilot-Session: f12710df-91d5-49e4-b327-337932478b0b
Use the centralized dnceng GitHub App path by default for internal GitHub OneLoc builds while preserving explicit opt-out to the PAT path. Document that runtime App failures do not automatically fall back to the PAT. Co-authored-by: Copilot <[email protected]> Copilot-Session: 8d5c9824-be94-4260-a72c-605d0ce1294d
Contributor
There was a problem hiding this comment.
Pull request overview
Backports GitHub App installation-token authentication support for OneLocBuild to release/10.0, enabling the GitHub App path by default for dnceng/internal GitHub repos while retaining an explicit PAT opt-out.
Changes:
- Added a PowerShell implementation to mint a GitHub App installation token via Key Vault signing.
- Added core + wrapper YAML step templates to run the token-minting logic in pipelines.
- Updated the OneLocBuild job template and docs to default to the App path for
dnceng/internalGitHub builds and document lack of PAT fallback on App failures.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| eng/common/templates/steps/get-github-app-token.yml | Non-1ES wrapper that forwards parameters to the core token-mint step. |
| eng/common/templates-official/steps/get-github-app-token.yml | 1ES wrapper that forwards parameters to the core token-mint step. |
| eng/common/Get-GitHubAppToken.ps1 | New script that signs a JWT via Key Vault and exchanges it for a GitHub installation token. |
| eng/common/core-templates/steps/get-github-app-token.yml | Core AzureCLI step to invoke the token-minting script and set a secret pipeline variable. |
| eng/common/core-templates/job/onelocbuild.yml | Enables GitHub App auth by default for dnceng/internal GitHub builds; retains PAT opt-out. |
| Documentation/OneLocBuildGitHubApp.md | New documentation describing access requirements, behavior, and troubleshooting for the App auth path. |
| Documentation/OneLocBuild.md | Links to the new GitHub App auth doc and documents the new template parameters. |
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
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
Suppressed comments (1)
eng/common/Get-GitHubAppToken.ps1:46
- Write-PipelineTelemetryError only emits Azure DevOps logissue/telemetry formatting when the
$civariable is set. This script relies on Write-PipelineTelemetryError for failures and also emits##vso[...]commands, so it should set$ci = $true(as other eng/common pipeline scripts do) to ensure errors are surfaced consistently in pipeline logs.
$ErrorActionPreference = 'Stop'
$PSNativeCommandUseErrorActionPreference = $true
. $PSScriptRoot\pipeline-logging-functions.ps1
akoeplinger
approved these changes
Aug 6, 2026
missymessa
deleted the
missymessa/backport-oneloc-github-app-release-10.0
branch
August 6, 2026 14:40
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.
Backport of #17219 and #17258 to
release/10.0.dnceng/internalGitHub builds.UseGitHubAppAuthentication: falseas the temporary PAT opt-out.Conflict resolution preserved the release branch's existing CEINTL documentation URLs.