Skip to content

Commit

Permalink
Use Agent.TempDirectory when building from archive in source-build (#…
Browse files Browse the repository at this point in the history
…45532)

This avoids 1ES scanners finding secrets in Build.ArtifactStagingDirectory that we already suppressed via CredScanSuppressions.json

Fixes dotnet/source-build#4773
  • Loading branch information
akoeplinger authored Dec 18, 2024
1 parent fc67cbe commit 124be38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/vmr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
# We either build the repo directly, or we extract them outside (which is what partners do)
- ${{ if parameters.buildFromArchive }}:
- name: sourcesPath
value: $(Build.ArtifactStagingDirectory)/dotnet-sources/
value: $(Agent.TempDirectory)/dotnet-sources/
- ${{ else }}:
- name: sourcesPath
value: $(vmrPath)
Expand Down

0 comments on commit 124be38

Please sign in to comment.