Repository navigation
Enable OneLoc GitHub App auth by default in DevDiv - #17368
Conversation
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
There was a problem hiding this comment.
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
DevDivby default (alongsideinternal) and auto-selectdevdiv-oneloc-githubappwhen the default connection parameter value is used. - Preserve non-default
GitHubAppServiceConnectionvalues 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.
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
There was a problem hiding this comment.
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: trueis set outsideinternal/DevDiv, the App-token step runs but will still use the defaultGitHubAppServiceConnection: '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 andGitHubAppServiceConnectionremains the default whileSystem.TeamProjectis neitherinternalnorDevDiv, 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:
|
Requeued CI. The failure is unrelated to this PR's YAML/documentation changes: one |
|
/azp run arcade-pr |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
@missymessa do we need to backport this and the other changes to older Arcade branches? |
|
@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 :) |
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
Summary
DevDiv/DevDivdevdiv-oneloc-githubappconnection when the inheriteddnceng-oneloc-githubappdefault is unchangedGitHubAppServiceConnectionvalues for separately provisioned infrastructurednceng/internalandDevDiv/DevDivRollout evidence
devdiv-oneloc-githubappexists inDevDiv/DevDiv, is ready, and uses workload identity federationMSBuildpipeline (definition 9434) is already authorized for that connectionUseGitHubAppAuthenticationInOtherProjectsorGitHubAppServiceConnectionA consumer canary is still required after dependency flow to confirm the GitHub App installation includes the target repository.