From 4f555ddc9d404fafd5ee8addbfce21e0fc2fd5c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emek=20Vysok=C3=BD?= Date: Mon, 22 Jan 2024 15:41:51 +0100 Subject: [PATCH] [release/8.0.1xx] Use PAT to pull from non-dnceng AzDO orgs (#18316) --- eng/pipelines/templates/jobs/vmr-synchronization.yml | 1 + eng/pipelines/templates/steps/vmr-pull-updates.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/templates/jobs/vmr-synchronization.yml b/eng/pipelines/templates/jobs/vmr-synchronization.yml index 7849b23e0..713deea20 100644 --- a/eng/pipelines/templates/jobs/vmr-synchronization.yml +++ b/eng/pipelines/templates/jobs/vmr-synchronization.yml @@ -32,6 +32,7 @@ jobs: - name: vmrPublicUrl value: https://github.com/dotnet/dotnet - ${{ if and( eq(variables['System.TeamProject'], 'internal'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/')) }}: + # https://dev.azure.com/dnceng/internal/_library?itemType=VariableGroups&view=VariableGroupView&variableGroupId=172&path=DotNetBot-AzDO-PAT - group: DotNetBot-AzDO-PAT - name: vmrInternalUrl value: https://dnceng@dev.azure.com/dnceng/internal/_git/dotnet-dotnet diff --git a/eng/pipelines/templates/steps/vmr-pull-updates.yml b/eng/pipelines/templates/steps/vmr-pull-updates.yml index ceeb1981a..4d68b2a03 100644 --- a/eng/pipelines/templates/steps/vmr-pull-updates.yml +++ b/eng/pipelines/templates/steps/vmr-pull-updates.yml @@ -39,7 +39,7 @@ steps: ./eng/vmr-sync.sh --vmr ${{ parameters.vmrPath }} --tmp $(Agent.TempDirectory) - --azdev-pat '$(System.AccessToken)' + --azdev-pat '$(dn-bot-all-orgs-code-r)' --branch ${{ parameters.vmrBranch }} --repository "installer:${{ parameters.targetRef }}" --recursive