Repository navigation
Enable useBinskimResponseFile for stable package unpacking - #7908
Conversation
Adds the useBinskimResponseFile feature flag to the official pipeline so BinSkim scans the extracted inner files of expanded archives/packages (the incremental binary analysis optimization) instead of scanning the whole content by default. Co-authored-by: Copilot <[email protected]> Copilot-Session: 5996506c-d4c2-4af1-b91d-d5152cd93dc2
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
Re-enables a 1ES pipeline feature flag so official builds use BinSkim’s response-file approach for stable/incremental scanning when packages are expanded, ensuring analysis targets extracted inner files rather than only top-level archives.
Changes:
- Add
useBinskimResponseFile: truetofeatureFlagsin the official 1ES pipeline configuration.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]> Copilot-Session: 5996506c-d4c2-4af1-b91d-d5152cd93dc2
|
/backport to release/10.0.1xx |
|
/backport to release/10.0.4xx |
|
Started backporting to |
|
Started backporting to |
|
@wtgodbe backporting to git am output$ git cherry-pick 2e328c93121fa5d7727981dae92293b232f0c002
Auto-merging eng/pipelines/official.yml
CONFLICT (content): Merge conflict in eng/pipelines/official.yml
error: could not apply 2e328c93121... Enable useBinskimResponseFile for stable package unpacking (#7908)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Enable useBinskimResponseFile for stable package unpacking
Using index info to reconstruct a base tree...
M eng/pipelines/official.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/official.yml
CONFLICT (content): Merge conflict in eng/pipelines/official.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Enable useBinskimResponseFile for stable package unpacking
Error: The process '/usr/bin/git' failed with exit code 128 |
|
@wtgodbe backporting to git am output$ git cherry-pick 2e328c93121fa5d7727981dae92293b232f0c002
Auto-merging eng/pipelines/official.yml
CONFLICT (content): Merge conflict in eng/pipelines/official.yml
error: could not apply 2e328c93121... Enable useBinskimResponseFile for stable package unpacking (#7908)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Enable useBinskimResponseFile for stable package unpacking
Using index info to reconstruct a base tree...
M eng/pipelines/official.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/official.yml
CONFLICT (content): Merge conflict in eng/pipelines/official.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Enable useBinskimResponseFile for stable package unpacking
Error: The process '/usr/bin/git' failed with exit code 128 |
Re-adds the
useBinskimResponseFile: truefeature flag to the official pipeline.Background
This flag enables the BinSkim incremental binary analysis optimization: when archive/package expansion is enabled, BinSkim scans the extracted inner files of the expanded archives instead of scanning the whole content by default. Without it, BinSkim is not scanning inside packages.
The flag was prototyped on a throwaway
binskim-testbranch (commit 3fce3beaf2d, Apr 2026) but was never merged tomain, so the optimization has been absent from the official build.Change
Adds
useBinskimResponseFile: trueunderfeatureFlagsineng/pipelines/official.yml.