Skip to content

Validate OneLoc GitHub App service connection opt-ins - #17393

Open
missymessa wants to merge 2 commits into
dotnet:mainfrom
missymessa:missymessa/validate-oneloc-service-connection
Open

Validate OneLoc GitHub App service connection opt-ins#17393
missymessa wants to merge 2 commits into
dotnet:mainfrom
missymessa:missymessa/validate-oneloc-service-connection

Conversation

@missymessa

Copy link
Copy Markdown
Member

Summary

  • fail template expansion when a project outside dnceng/internal and DevDiv/DevDiv opts into OneLoc GitHub App authentication without overriding the dnceng-scoped service connection
  • document the required project-scoped connection override

Why

The default dnceng-oneloc-githubapp connection does not exist in arbitrary Azure DevOps projects. Without this guard, an opt-in that omits GitHubAppServiceConnection fails later with a less actionable service-connection-not-found or authorization error.

This is the source fix for feedback on dotnet/roslyn-sdk#1281.

Validation

  • parsed the updated template as YAML
  • git diff --check

Tracking: https://dev.azure.com/dnceng/internal/_workitems/edit/12312

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 0e1a942f-a44f-4e3a-8d35-af3fe8bee535
Copilot AI lite review requested due to automatic review settings August 23, 2026 17:12

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

This PR strengthens the OneLocBuild Azure Pipelines template by validating GitHub App authentication opt-ins early, so misconfigured service-connection defaults fail during template expansion with an actionable error, and updates documentation to describe the required override for non-dnceng/internal and non-DevDiv/DevDiv projects.

Changes:

  • Add a template-expansion validation error when UseGitHubAppAuthenticationInOtherProjects is enabled outside the supported projects while retaining the default dnceng-oneloc-githubapp service connection.
  • Update the GitHub App documentation to explicitly require a project-scoped GitHubAppServiceConnection override for non-default projects.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
eng/common/core-templates/job/onelocbuild.yml Adds early validation to catch invalid OneLoc GitHub App service-connection defaults for external project opt-ins.
Documentation/OneLocBuildGitHubApp.md Documents the required service-connection override behavior for external opt-ins and clarifies failure mode.

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

Comment thread eng/common/core-templates/job/onelocbuild.yml Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 0e1a942f-a44f-4e3a-8d35-af3fe8bee535
Copilot AI review requested due to automatic review settings August 24, 2026 14:17

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

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.

2 participants