Replace dn-bot-all-drop-rw-code-rw-release-all PAT with WIF token#5832
Merged
Conversation
Migrate DARC Gather build task from using the dn-bot-all-drop-rw-code-rw-release-all PAT to acquiring an AzDO access token from the DotNetStaging service connection via az account get-access-token. The task already runs inside AzureCLI@2 with DotNetStaging, so the SP is already authenticated. Part of PAT migration work item dnceng/internal#10105.
hoyosjs
approved these changes
May 7, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Migrate the DARC Gather build task in \�ng/pipelines/prepare-release.yml\ from using the \dn-bot-all-drop-rw-code-rw-release-all\ PAT to acquiring an AzDO access token from the DotNetStaging service connection via \�z account get-access-token.
What changed
The \AzureCLI@2\ task already runs with the \DotNetStaging\ service connection (WIF), so the Azure CLI is already authenticated. Instead of passing the PAT variable, we now:
This switches from \scriptPath+\�rguments\ to \inlineScript\ to allow the token acquisition step.
Why
Part of the 1ES PAT Disable Policy migration. The \dn-bot-all-drop-rw-code-rw-release-all\ PAT is being retired in favor of Entra-based authentication.
Tracked by: https://dev.azure.com/dnceng/internal/_workitems/edit/10105
Validation
elease/*\ branch will validate end-to-end