Skip to content

[release/10.0] Use WIF-based Entra auth for OneLocBuild ceapex feed access#17084

Open
missymessa wants to merge 1 commit into
release/10.0from
onelocbuild-wif-migration-10.0
Open

[release/10.0] Use WIF-based Entra auth for OneLocBuild ceapex feed access#17084
missymessa wants to merge 1 commit into
release/10.0from
onelocbuild-wif-migration-10.0

Conversation

@missymessa

Copy link
Copy Markdown
Member

Cherry-pick of #17083 to release/10.0.

Replaces PAT-based authentication for OneLocBuild's ceapex feed access with WIF-based Entra token via AzureCLI@2 and the dnceng-onelocbuild-ceapex service connection.

Related: AzDO#10151

Cherry-pick of onelocbuild-wif-migration (main) to release/10.0.

Replace PAT-based authentication with Entra token acquired via
AzureCLI@2 and the dnceng-onelocbuild-ceapex service connection.

Related: AzDO#10151
Copilot AI review requested due to automatic review settings July 8, 2026 20:05

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 support WIF-based Entra authentication for ceapex Azure DevOps feed access (replacing the prior PAT-based approach) by acquiring an access token via AzureCLI@2 and passing it into OneLocBuild.

Changes:

  • Add CeapexServiceConnection parameter to control WIF-based Entra authentication vs PAT fallback.
  • Add an AzureCLI@2 step to acquire an Entra token for Azure DevOps and store it as a secret variable.
  • Update the localization task invocation from OneLocBuild@2 to OneLocBuild@3 and conditionally supply the credential.

Comment on lines +90 to +91
$token = az account get-access-token --query accessToken --resource 499b84ac-1321-427f-aa17-267ca6975798 -o tsv
if (-not $token) { Write-Error "Failed to acquire AzDO token"; exit 1 }
Comment on lines +11 to +14
# Service connection for WIF-based Entra authentication to ceapex feeds (replaces CeapexPat).
# When set, uses AzureCLI@2 to obtain an Entra token instead of a PAT.
# Set to '' to fall back to PAT-based auth via CeapexPat parameter.
CeapexServiceConnection: 'dnceng-onelocbuild-ceapex'
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