Skip to content

Migrate dn-bot-devdiv-drop-rw-code-rw PAT to WIF service connection#283

Open
missymessa wants to merge 1 commit intodotnet:mainfrom
missymessa:dev/mjanecke/wif-drop-token
Open

Migrate dn-bot-devdiv-drop-rw-code-rw PAT to WIF service connection#283
missymessa wants to merge 1 commit intodotnet:mainfrom
missymessa:dev/mjanecke/wif-drop-token

Conversation

@missymessa
Copy link
Copy Markdown
Member

Summary

Migrate the dn-bot-devdiv-drop-rw-code-rw PAT to Workload Identity Federation (WIF) for VSTS drop uploads.

Changes

  • Add AzureCLI@2 step before 1ES.MicroBuildVstsDrop@1 to obtain a DevDiv-scoped access token via the dnceng-devdiv-drop-rw-code-rw-wif service connection
  • Replace accessToken: $(_DevDivDropAccessToken) with the WIF-obtained $(DevDivDropAccessToken) variable

Validation

  • Test build 2952263 — queued from dev/mjanecke/wif-drop-token branch on the AzDO mirror
    • Get DevDiv Drop Access Token (AzureCLI@2) — succeeded
    • Upload VSTS Drop (1ES.MicroBuildVstsDrop@1) — succeeded

Context

Part of PAT-to-Entra migration tracked by AB#10146.

Replace PAT-based auth for VSTS drop upload with AzureCLI@2 + WIF
service connection 'dnceng-devdiv-drop-rw-code-rw-wif'. The new flow
gets a DevDiv-scoped token via az CLI instead of using the PAT from
the DotNet-VSTS-Infra-Access variable group.

Work item: AB#10146
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.

1 participant