We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a733d82 commit b2be9f5Copy full SHA for b2be9f5
eng/common/pipelines/templates/steps/credscan.yml
@@ -7,7 +7,7 @@ parameters:
7
steps:
8
- pwsh: |
9
if ("$(Build.Reason)" -eq 'PullRequest') {
10
- $targetBranch = "origin/$(System.PullRequest.TargetBranch)" -replace "/refs/heads/"
+ $targetBranch = "origin/$(System.PullRequest.TargetBranch)" -replace "refs/heads/"
11
$changedFiles = git diff $targetBranch HEAD --name-only --diff-filter=d
12
$changedFiles | ForEach-Object { Add-Content -Path "${{ parameters.SourceDirectory }}/credscan.tsv" -Value "${{ parameters.SourceDirectory }}/$_"}
13
}
0 commit comments