[release/9.0.1xx] Remove AzDo token from the vmr-sync pipeline, use a MI instead#53437
Draft
dkurepa wants to merge 1 commit intorelease/9.0.1xxfrom
Draft
[release/9.0.1xx] Remove AzDo token from the vmr-sync pipeline, use a MI instead#53437dkurepa wants to merge 1 commit intorelease/9.0.1xxfrom
dkurepa wants to merge 1 commit intorelease/9.0.1xxfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the VMR synchronization pipeline to use a federated access token (instead of a PAT variable group) when syncing updates into the VMR, aligning token acquisition with the eng/common federated token pattern.
Changes:
- Replace the
dn-bot-all-orgs-code-rPAT usage in VMR sync steps with a pipeline variableAzdoToken. - Remove the
DotNetBot-AzDO-PATvariable group usage for internal release syncs. - Add a step (conditional) to fetch an Azure DevOps federated access token and expose it as
AzdoToken.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| eng/pipelines/templates/steps/vmr-pull-updates.yml | Switch VMR sync invocation to use $(AzdoToken) for --azdev-pat / -azdevPat. |
| eng/pipelines/templates/jobs/vmr-synchronization.yml | Remove PAT variable group and add federated token acquisition step for internal release branches. |
| vmrBranch: ${{ parameters.vmrBranch }} | ||
|
|
||
| - ${{ if and(not(parameters.noPush), eq(variables['System.TeamProject'], 'internal'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/')) }}: | ||
| - template: ./eng/common/templates-official/steps/get-federated-access-token.yml |
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.
The MI doesn't have access to the devdiv subscription yet, will turn this draft into a PR when it does
dotnet/arcade-services#6062