From fa7afaae5378694faab0d4eed923e9e62bcb1ea2 Mon Sep 17 00:00:00 2001 From: Premek Vysoky Date: Tue, 11 Aug 2026 17:19:35 +0200 Subject: [PATCH 1/2] Add a workaround for obtaining GitHub app tokens The Arcade template does not work in a multi-repo checkout context --- eng/pipelines/templates/jobs/vmr-synchronization.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eng/pipelines/templates/jobs/vmr-synchronization.yml b/eng/pipelines/templates/jobs/vmr-synchronization.yml index 00446361702e..78ab7dde20a8 100644 --- a/eng/pipelines/templates/jobs/vmr-synchronization.yml +++ b/eng/pipelines/templates/jobs/vmr-synchronization.yml @@ -66,8 +66,16 @@ jobs: targetRef: ${{ parameters.targetRef }} - ${{ if and(not(parameters.noPush), not(in(variables['Build.Reason'], 'PullRequest')), eq(variables['System.TeamProject'], 'internal')) }}: + # Push main and release branches to the public VMR - ${{ if or(eq(parameters.vmrBranch, 'main'), startsWith(parameters.vmrBranch, 'release/')) }}: + + # Make sure the script is where we expect it to be, since the template does not support multi-repo checkout + - script: | + mkdir -p $(System.DefaultWorkingDirectory)/eng/common + cp -r $(System.DefaultWorkingDirectory)/sdk/eng/common/Get-GitHubAppToken.ps1 $(System.DefaultWorkingDirectory)/eng/common + displayName: Copy GitHub App token script + - template: /eng/common/templates-official/steps/get-github-app-token.yml parameters: azureSubscription: DncEng-VSTS From 5777b488c108828a6de5938e3a42c7dea150cc98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emek=20Vysok=C3=BD?= Date: Tue, 11 Aug 2026 17:20:43 +0200 Subject: [PATCH 2/2] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Přemek Vysoký --- eng/pipelines/templates/jobs/vmr-synchronization.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/eng/pipelines/templates/jobs/vmr-synchronization.yml b/eng/pipelines/templates/jobs/vmr-synchronization.yml index 78ab7dde20a8..bf29fcfdae3b 100644 --- a/eng/pipelines/templates/jobs/vmr-synchronization.yml +++ b/eng/pipelines/templates/jobs/vmr-synchronization.yml @@ -66,10 +66,8 @@ jobs: targetRef: ${{ parameters.targetRef }} - ${{ if and(not(parameters.noPush), not(in(variables['Build.Reason'], 'PullRequest')), eq(variables['System.TeamProject'], 'internal')) }}: - # Push main and release branches to the public VMR - ${{ if or(eq(parameters.vmrBranch, 'main'), startsWith(parameters.vmrBranch, 'release/')) }}: - # Make sure the script is where we expect it to be, since the template does not support multi-repo checkout - script: | mkdir -p $(System.DefaultWorkingDirectory)/eng/common