Skip to content

[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
dkurepa/RemoveAzDoToken
Draft

[release/9.0.1xx] Remove AzDo token from the vmr-sync pipeline, use a MI instead#53437
dkurepa wants to merge 1 commit intorelease/9.0.1xxfrom
dkurepa/RemoveAzDoToken

Conversation

@dkurepa
Copy link
Member

@dkurepa dkurepa commented Mar 13, 2026

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

@dkurepa dkurepa requested review from a team as code owners March 13, 2026 11:44
Copilot AI review requested due to automatic review settings March 13, 2026 11:44
@dkurepa dkurepa marked this pull request as draft March 13, 2026 11:44
Copy link
Contributor

Copilot AI left a comment

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 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-r PAT usage in VMR sync steps with a pipeline variable AzdoToken.
  • Remove the DotNetBot-AzDO-PAT variable 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
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