Skip to content

[release/10.0] Enable OneLoc GitHub App authentication by default - #17261

Merged
missymessa merged 4 commits into
release/10.0from
missymessa/backport-oneloc-github-app-release-10.0
Aug 6, 2026
Merged

missymessa merged 4 commits into
release/10.0from
missymessa/backport-oneloc-github-app-release-10.0

Conversation

@missymessa

Copy link
Copy Markdown
Member

Backport of #17219 and #17258 to release/10.0.

  • Adds the OneLocBuild GitHub App installation-token implementation.
  • Enables the App path by default for dnceng/internal GitHub builds.
  • Preserves UseGitHubAppAuthentication: false as the temporary PAT opt-out.
  • Documents that App token/authentication failures do not automatically retry with the PAT.

Conflict resolution preserved the release branch's existing CEINTL documentation URLs.

missymessa and others added 2 commits August 5, 2026 15:08
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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/internal GitHub 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.

Comment thread eng/common/Get-GitHubAppToken.ps1 Resolved
Comment thread eng/common/Get-GitHubAppToken.ps1 Resolved
Comment thread Documentation/OneLocBuildGitHubApp.md Resolved
missymessa and others added 2 commits August 5, 2026 15:20
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
Copilot AI review requested due to automatic review settings August 5, 2026 22:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 $ci variable 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants