Skip to content

Enable OneLoc GitHub App auth by default in DevDiv - #17368

Merged
missymessa merged 2 commits into
mainfrom
missymessa/oneloc-devdiv-default
Aug 19, 2026
Merged

missymessa merged 2 commits into
mainfrom
missymessa/oneloc-devdiv-default

Conversation

@missymessa

@missymessa missymessa commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Summary

  • enable OneLocBuild GitHub App authentication by default in DevDiv/DevDiv
  • automatically select the project-scoped devdiv-oneloc-githubapp connection when the inherited dnceng-oneloc-githubapp default is unchanged
  • preserve non-default GitHubAppServiceConnection values for separately provisioned infrastructure
  • document the default connection mapping for both dnceng/internal and DevDiv/DevDiv

Rollout evidence

  • devdiv-oneloc-githubapp exists in DevDiv/DevDiv, is ready, and uses workload identity federation
  • the DevDiv MSBuild pipeline (definition 9434) is already authorized for that connection
  • consumer YAML no longer needs UseGitHubAppAuthenticationInOtherProjects or GitHubAppServiceConnection

A consumer canary is still required after dependency flow to confirm the GitHub App installation includes the target repository.

Automatically select the DevDiv-scoped service connection while preserving explicit overrides and document both supported Azure DevOps projects.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9236931a-f5da-4ff3-83a9-539cf86b6df0
Copilot AI lite review requested due to automatic review settings August 19, 2026 18:22
@missymessa
missymessa requested a review from epananth August 19, 2026 18:24
@missymessa
missymessa enabled auto-merge (squash) August 19, 2026 18:24

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

Updates the OneLocBuild pipeline template to enable GitHub App authentication by default when running in the DevDiv/DevDiv Azure DevOps project, while keeping dnceng/internal as the existing default-enabled project. Documentation is updated to reflect the default project/connection mapping and the opt-in behavior for other projects.

Changes:

  • Enable GitHub App token minting in DevDiv by default (alongside internal) and auto-select devdiv-oneloc-githubapp when the default connection parameter value is used.
  • Preserve non-default GitHubAppServiceConnection values so explicitly provided alternate connections continue to work.
  • Update OneLocBuild docs to describe the new default-enabled projects and service-connection mapping.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
eng/common/core-templates/job/onelocbuild.yml Enables DevDiv by default and maps the default GitHub App service connection to devdiv-oneloc-githubapp in DevDiv.
Documentation/OneLocBuildGitHubApp.md Documents default-enabled projects and the per-project service connection mapping for GitHub App auth.
Documentation/OneLocBuild.md Updates parameter docs to reflect DevDiv default enablement and the automatic connection selection behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Documentation/OneLocBuildGitHubApp.md Resolved
Comment thread Documentation/OneLocBuild.md Resolved
@missymessa
missymessa requested a review from mmitche August 19, 2026 18:28
Document that Arcade remaps the inherited dnceng default while preserving values that differ from the default.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9236931a-f5da-4ff3-83a9-539cf86b6df0
Copilot AI review requested due to automatic review settings August 19, 2026 18:29

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 3 out of 3 changed files in this pull request and generated no new comments.

Suppressed comments (1)

eng/common/core-templates/job/onelocbuild.yml:106

  • When UseGitHubAppAuthenticationInOtherProjects: true is set outside internal/DevDiv, the App-token step runs but will still use the default GitHubAppServiceConnection: 'dnceng-oneloc-githubapp' unless the caller also overrides it. Since that connection is project-scoped, this likely fails with a generic “service connection not found/unauthorized” error. Consider adding an explicit template guard/error when opt-in is true and GitHubAppServiceConnection remains the default while System.TeamProject is neither internal nor DevDiv, so misconfiguration fails fast with a clear message.
    # Mint a short-lived GitHub App installation token for the loc check-in PR. Use the connection
    # provisioned in each supported project; other projects must explicitly opt in and override it.
    - ${{ if and(eq(parameters.RepoType, 'gitHub'), eq(parameters.UseGitHubAppAuthentication, true), or(eq(variables['System.TeamProject'], 'internal'), eq(variables['System.TeamProject'], 'DevDiv'), eq(parameters.UseGitHubAppAuthenticationInOtherProjects, true))) }}:
      - template: /eng/common/core-templates/steps/get-github-app-token.yml
        parameters:

@missymessa

Copy link
Copy Markdown
Member Author

Requeued CI. The failure is unrelated to this PR's YAML/documentation changes: one Microsoft.DotNet.Helix.Sdk.Tests.dll run on azurelinux.3.amd64.open failed the timing-sensitive MonitorTimesOut_DoesNotReportOrCancelJobsThatFinishedAfterFirstPoll assertion because helix-good was still reported at the timeout boundary. The same test assembly passed in the parallel Azure Linux Helix job (2a8697d0-d91a-4401-8b1d-d0779bde1c9e, exit code 0); all build and non-Helix test legs passed.

@missymessa

Copy link
Copy Markdown
Member Author

/azp run arcade-pr

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@missymessa
missymessa merged commit f86a77f into main Aug 19, 2026
10 of 13 checks passed
@missymessa
missymessa deleted the missymessa/oneloc-devdiv-default branch August 19, 2026 20:50
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 20, 2026
@ViktorHofer

Copy link
Copy Markdown
Member

@missymessa do we need to backport this and the other changes to older Arcade branches?

@missymessa

Copy link
Copy Markdown
Member Author

@ViktorHofer yep! I wanted to make sure it was working before I did the backport, so if I needed to make any fixes, I could do all the backport fixes at once :)

@ViktorHofer

Copy link
Copy Markdown
Member

missymessa added a commit to missymessa/arcade that referenced this pull request Aug 23, 2026
Use the DevDiv-scoped service connection by default while preserving explicit overrides and PAT fallback.

Backport: dotnet#17368

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 9d86c2f6-8c72-4ce8-933a-841a368be1d9
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