[release/10.0] Use WIF for OneLocBuild in DevDiv - #17416
Merged
missymessa merged 4 commits intoAug 27, 2026
Merged
Conversation
Acquire a short-lived Ceapex feed token in both supported Azure DevOps projects so DevDiv consumers no longer fall back to dn-bot-ceapex-package-r. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 42b6e46d-b9c0-4558-856d-1d1bdb50609d
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 42b6e46d-b9c0-4558-856d-1d1bdb50609d
Contributor
There was a problem hiding this comment.
Pull request overview
Backports the OneLocBuild WIF (workload identity federation) authentication flow to the release/10.0 Arcade templates so DevDiv pipelines can use project-scoped service connections, while keeping the existing PAT fallback behavior for other projects and explicit opt-out callers.
Changes:
- Enable the federated token acquisition path for both
internalandDevDivAzure DevOps projects. - Preserve PAT-based auth for all other projects and for callers that set
CeapexServiceConnection: ''. - Document the
CeapexServiceConnectionparameter behavior and DevDiv authorization requirements.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| eng/common/core-templates/job/onelocbuild.yml | Expands WIF token acquisition and selection logic to include DevDiv while keeping PAT fallback. |
| Documentation/OneLocBuild.md | Documents the new/updated CeapexServiceConnection behavior and rollout constraints. |
Suppressed comments (1)
eng/common/core-templates/job/onelocbuild.yml:91
- This comment says the WIF connection is scoped to the current project, but the step is only enabled for
internalandDevDivprojects. Wording it to match the actual gating would avoid suggesting that any project with a same-named connection will automatically use WIF.
# Acquire an Entra token for ceapex feed access in the supported internal and DevDiv projects.
- ${{ if and(ne(parameters.CeapexServiceConnection, ''), or(eq(variables['System.TeamProject'], 'internal'), eq(variables['System.TeamProject'], 'DevDiv'))) }}:
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b3d98045-099b-4d7b-bb1f-84b3274084b7
Open
3 tasks
mmitche
approved these changes
Aug 27, 2026
Comment on lines
199
to
+203
| | `SkipLocProjectJsonGeneration` | `false` | When set to `true`, skips the LocProject.json generation in favor of using a checked-in LocProject.json. | ||
| | `LanguageSet` | `VS_Main_Languages` | This defines the `LanguageSet` of the LocProject.json as described in the [OneLocBuild task documentation](https://ceapex.visualstudio.com/CEINTL/_wiki/wikis/CEINTL.wiki/107/Localization-with-OneLocBuild-Task?anchor=languageset%2C-languages-(required)). | | ||
| | `LclSource` | `LclFilesInRepo` | This passes the `LclSource` input to the OneLocBuild task as described in [its documentation](https://ceapex.visualstudio.com/CEINTL/_wiki/wikis/CEINTL.wiki/107/Localization-with-OneLocBuild-Task?anchor=languageset%2C-languages-(required)). For most repos, this should be set to `LclFilesfromPackage`. | | ||
| | `LclPackageId` | `''` | When `LclSource` is set to `LclFilesfromPackage`, this passes in the package ID as described in the [OneLocBuild task documentation](https://ceapex.visualstudio.com/CEINTL/_wiki/wikis/CEINTL.wiki/107/Localization-with-OneLocBuild-Task?anchor=scenario-2%3A-lcl-files-from-a-package). | | ||
| | `CeapexServiceConnection` | `'dnceng-onelocbuild-ceapex'` | The project-scoped WIF service connection used to acquire a short-lived token for the Ceapex feeds. This path is enabled when `System.TeamProject` is `internal` or `DevDiv`; other values continue to use `CeapexPat`. Pipelines in either supported project must be authorized to use their project's connection. Set to `''` to explicitly use the PAT path. | |
This was referenced Aug 27, 2026
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 #17415 for Arcade consumers pinned to release/10.0. Enables the existing Ceapex WIF path for DevDiv/DevDiv while preserving PAT fallback for other projects and explicit opt-out callers. The affected DevDiv pipelines have been authorized for the project-scoped service connection. Relates to AB#10151.