Repository navigation
Stop leaking SDK tarballs into binary-report in Source-Only validation - #6769
Merged
Merged
Conversation
Three download-artifacts.yml calls in source-build-and-validate.yml share the same pipeline artifact name, so `$(Pipeline.Workspace)/<artifactName>/` accumulates files across calls. download-artifacts.yml's CopyFiles used `Contents: '**'`, which dragged SDK tar.gz files left by an earlier download into `artifacts/log/Release/binary-report/ `(via flattenDirs). Those then got staged under BuildLogs/ and rescanned by 1ES PT's injected Binary Analysis Scan Optimization. - Filter CopyFiles by downloadFilePatterns so only requested files are copied. - Delete the staging folder after copy to free disk and prevent similar leaks. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the reusable download-artifacts.yml pipeline step to prevent unintended files from being copied when multiple downloads reuse the same pipeline artifact name/workspace folder during source-only validation.
Changes:
- Restricts
CopyFiles@2to copy only the requesteddownloadFilePatternsinstead of copying**(everything). - Adds a cleanup step to delete downloaded files from
$(Pipeline.Workspace)/<artifactName>/after the copy completes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mthalman
approved these changes
May 22, 2026
Member
Author
|
/backport to release/10.0.1xx |
Contributor
|
Started backporting to |
Member
Author
|
/backport to release/10.0.3xx |
Member
Author
|
/backport to release/10.0.4xx |
Contributor
|
Started backporting to |
Contributor
|
Started backporting to |
This was referenced May 26, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three download-artifacts.yml calls in source-build-and-validate.yml share the same pipeline artifact name, so
$(Pipeline.Workspace)/<artifactName>/accumulates files across calls.download-artifacts.yml's CopyFiles used
Contents: '**', which dragged SDK tar.gz files left by an earlier download intoartifacts/log/Release/binary-report/(via flattenDirs).Those then got staged under BuildLogs/ and rescanned by 1ES PT's injected Binary Analysis Scan Optimization.