Skip to content

[release/10.0] Use WIF for OneLocBuild in DevDiv - #17416

Merged
missymessa merged 4 commits into
release/10.0from
missymessa/oneloc-devdiv-wif-release-10.0
Aug 27, 2026
Merged

[release/10.0] Use WIF for OneLocBuild in DevDiv#17416
missymessa merged 4 commits into
release/10.0from
missymessa/oneloc-devdiv-wif-release-10.0

Conversation

@missymessa

Copy link
Copy Markdown
Member

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.

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
Copilot AI lite review requested due to automatic review settings August 26, 2026 23:56
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 42b6e46d-b9c0-4558-856d-1d1bdb50609d

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 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 internal and DevDiv Azure DevOps projects.
  • Preserve PAT-based auth for all other projects and for callers that set CeapexServiceConnection: ''.
  • Document the CeapexServiceConnection parameter 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 internal and DevDiv projects. 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.

Comment thread eng/common/core-templates/job/onelocbuild.yml Outdated
Comment thread Documentation/OneLocBuild.md Outdated
Copilot AI review requested due to automatic review settings August 26, 2026 23:58

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.

@missymessa
missymessa requested a review from mmitche August 27, 2026 00:06
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: b3d98045-099b-4d7b-bb1f-84b3274084b7
Copilot AI review requested due to automatic review settings August 27, 2026 00:27

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.

Copilot AI review requested due to automatic review settings August 27, 2026 14:46
@missymessa
missymessa enabled auto-merge (squash) August 27, 2026 14:46

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 1 comment.

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. |
@missymessa
missymessa merged commit 22efb9c into release/10.0 Aug 27, 2026
10 of 12 checks passed
@missymessa
missymessa deleted the missymessa/oneloc-devdiv-wif-release-10.0 branch August 27, 2026 16:09
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