Skip to content

Commit 0627a7c

Browse files
Move AzureDevOps repository checkout from pipeline to JavaScript logic to avoid CG issues (#21198)
* Removing AzureDevops repo from resources to avoid CG alerts in tasks repo * Updating courtesy-push.js and adding Dry Run parameter to avoid PR creation, avoid pushing changes to the feed * Passing DRY RUN parameter in Create release note step also
1 parent 8bbef43 commit 0627a7c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ci/build-all-steps.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ steps:
9292
# Pull commits from remote and push branch to git
9393
git checkout -b $releaseBranch
9494
if( $isDryRun -eq 'true' ) {
95-
Write-Host 'DRY RUN: Skipping Git push operations to remote repository'
95+
Write-Host "DRY RUN: Skipping Git push operations to remote repository"
9696
}else{
97-
Write-Host 'Trying to pull the remote branch..'
98-
git pull https://$(GitHubPAT)@github.com/microsoft/azure-pipelines-tasks $releaseBranch
99-
if (-not $?) {
100-
Write-Host 'Failed to pull the remote branch. This is expected if the remote branch doesn't exist.'
101-
}
102-
Write-Host 'Trying to push to the remote branch..'
103-
git push https://$(GitHubPAT)@github.com/microsoft/azure-pipelines-tasks $releaseBranch
97+
Write-Host "Trying to pull the remote branch.."
98+
git pull https://$(GitHubPAT)@github.com/microsoft/azure-pipelines-tasks $releaseBranch
99+
if (-not $?) {
100+
Write-Host "Failed to pull the remote branch. This is expected if the remote branch doesn't exist."
101+
}
102+
Write-Host "Trying to push to the remote branch.."
103+
git push https://$(GitHubPAT)@github.com/microsoft/azure-pipelines-tasks $releaseBranch
104104
}
105105
condition: |
106106
and(

0 commit comments

Comments
 (0)