Skip to content

[release/10.0.1xx] Stop leaking SDK tarballs into binary-report in Source-Only validation - #6826

Merged
akoeplinger merged 1 commit into
release/10.0.1xxfrom
backport/pr-6769-to-release/10.0.1xx
May 26, 2026
Merged

akoeplinger merged 1 commit into
release/10.0.1xxfrom
backport/pr-6769-to-release/10.0.1xx

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #6769 to release/10.0.1xx

/cc @akoeplinger

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]>
@github-actions
github-actions Bot requested review from a team as code owners May 26, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant