Replace dn-bot-dnceng-build-rw-code-rw PAT with WIF service connection in mirror-within-azdo#66115
Open
missymessa wants to merge 1 commit intorelease/8.0from
Open
Replace dn-bot-dnceng-build-rw-code-rw PAT with WIF service connection in mirror-within-azdo#66115missymessa wants to merge 1 commit intorelease/8.0from
missymessa wants to merge 1 commit intorelease/8.0from
Conversation
…n in mirror-within-azdo
Contributor
|
Hi @@missymessa. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the servicing process document. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the internal AzDO “mirror-within-azdo” pipeline from using a stored PAT (via the Mirror-Credentials variable group) to using a Workload Identity Federation (WIF) service connection, aligning the release/8.0 branch with the already-merged change on main.
Changes:
- Removed the
Mirror-Credentialsvariable group dependency. - Added an
AzureCLI@2step to mint an AzDO bearer token viaaz account get-access-tokenusing thednceng-build-rw-code-rw-wifservice connection and store it as a secret variable. - Updated
git cloneandgit pushto use header-based auth (http.https://dev.azure.com/.extraheader) instead of embedding credentials in the URL.
wtgodbe
approved these changes
Apr 2, 2026
Member
Author
|
/azp run aspnetcore-ci |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Summary
Migrate the
azure-pipelines-mirror-within-azdo.ymlpipeline from using thedn-bot-dnceng-build-rw-code-rwPAT (from theMirror-Credentialsvariable group) to thednceng-build-rw-code-rw-wifWorkload Identity Federation service connection.This is the same change as #66074 (merged to
main), ported to therelease/8.0branch.Changes
Mirror-Credentialsvariable group referenceAzureCLI@2step – mints an AzDO bearer token viaaz account get-access-tokenusing thednceng-build-rw-code-rw-wifWIF service connection and stores it as the secret pipeline variableWifAzdoTokenhttp.extraheader) instead of PAT embedded in the URLRelated
dnceng-build-rw-code-rw-wif(Entra app21f66e0-bb35-4fd3-bc70-ba084d1e7a52)