Skip to content

Commit 124be38

Browse files
authored
Use Agent.TempDirectory when building from archive in source-build (#45532)
This avoids 1ES scanners finding secrets in Build.ArtifactStagingDirectory that we already suppressed via CredScanSuppressions.json Fixes dotnet/source-build#4773
1 parent fc67cbe commit 124be38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/pipelines/templates/jobs/vmr-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172
# We either build the repo directly, or we extract them outside (which is what partners do)
173173
- ${{ if parameters.buildFromArchive }}:
174174
- name: sourcesPath
175-
value: $(Build.ArtifactStagingDirectory)/dotnet-sources/
175+
value: $(Agent.TempDirectory)/dotnet-sources/
176176
- ${{ else }}:
177177
- name: sourcesPath
178178
value: $(vmrPath)

0 commit comments

Comments
 (0)