Skip to content

Enable useBinskimResponseFile for stable package unpacking - #7908

Merged
mmitche merged 1 commit into
dotnet:mainfrom
mmitche:dev/mmitche/binskim-response-file
Jul 23, 2026
Merged

mmitche merged 1 commit into
dotnet:mainfrom
mmitche:dev/mmitche/binskim-response-file

Conversation

@mmitche

@mmitche mmitche commented Jul 22, 2026

Copy link
Copy Markdown
Member

Re-adds the useBinskimResponseFile: true feature 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-test branch (commit 3fce3beaf2d, Apr 2026) but was never merged to main, so the optimization has been absent from the official build.

Change

Adds useBinskimResponseFile: true under featureFlags in eng/pipelines/official.yml.

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
Copilot AI review requested due to automatic review settings July 22, 2026 13:59
@mmitche
mmitche requested review from a team as code owners July 22, 2026 13:59
@azure-pipelines

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: true to featureFlags in the official 1ES pipeline configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mmitche
mmitche merged commit 2e328c9 into dotnet:main Jul 23, 2026
4 of 11 checks passed
mthalman pushed a commit to omajid/dotnet-dotnet that referenced this pull request Jul 24, 2026
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 5996506c-d4c2-4af1-b91d-d5152cd93dc2
@wtgodbe

wtgodbe commented Sep 24, 2026

Copy link
Copy Markdown
Member

/backport to release/10.0.1xx

@wtgodbe

wtgodbe commented Sep 24, 2026

Copy link
Copy Markdown
Member

/backport to release/10.0.4xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.1xx (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.4xx (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

@wtgodbe backporting to release/10.0.4xx failed, the patch most likely resulted in conflicts. Please backport manually!

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

Link to workflow output

@github-actions

Copy link
Copy Markdown
Contributor

@wtgodbe backporting to release/10.0.1xx failed, the patch most likely resulted in conflicts. Please backport manually!

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

Link to workflow output

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.

4 participants