Skip to content

[build] Revert BinSkim analyzeTargetGlob customization - #10964

Merged
jonathanpeppers merged 8 commits into
mainfrom
dev/jopepper/fix-binskim-glob-pattern
Mar 19, 2026
Merged

[build] Revert BinSkim analyzeTargetGlob customization#10964
jonathanpeppers merged 8 commits into
mainfrom
dev/jopepper/fix-binskim-glob-pattern

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Mar 18, 2026

Copy link
Copy Markdown
Member

Revert the analyzeTargetGlob customization added in PRs #10940, #10953, and #10961.

The custom glob patterns caused more problems than they solved:

Remove analyzeTargetGlob entirely and keep only scanOutputDirectoryOnly: true, which is the default configuration that worked before #10940.

Revert analyzeTargetGlob to a single pattern (bin\Build*\**) by removing
the semicolon-separated bin\msi-nupkgs\** addition from PR #10961.

Guardian's glob parser does not support semicolon-separated patterns.
When the value contains semicolons, Guardian prepends the source directory
to the entire string, creating an unparseable glob:

    D:\a\_work\1\s\bin\Build*\**;bin\msi-nupkgs\**

This causes BinSkim to fail with ERR997.NoValidAnalysisTargets in every
job that uses the global SDL config (Convert NuGet to MSI, Debugging
tests, etc.).

The 'Convert NuGet to MSI' job is fixed separately by adding a per-job
analyzeTargetGlob override in Xamarin.yaml-templates, matching the
approach already used by the sign-artifacts template.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers

Copy link
Copy Markdown
Member Author

jonathanpeppers and others added 3 commits March 18, 2026 12:18
Point BinSkim at the actual MSI output directory so the Convert NuGet
to MSI job has valid scan targets.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers

Copy link
Copy Markdown
Member Author

@jonathanpeppers jonathanpeppers changed the title [build] Fix BinSkim glob pattern: remove broken semicolons [build] Revert BinSkim analyzeTargetGlob customization Mar 18, 2026
@jonathanpeppers

Copy link
Copy Markdown
Member Author

jonathanpeppers and others added 2 commits March 18, 2026 16:27
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers

Copy link
Copy Markdown
Member Author

@jonathanpeppers

Copy link
Copy Markdown
Member Author

Finally, green again:

image

Merging to unblock builds.

@jonathanpeppers
jonathanpeppers marked this pull request as ready for review March 19, 2026 02:35
Copilot AI review requested due to automatic review settings March 19, 2026 02:35
@jonathanpeppers
jonathanpeppers merged commit e0d2614 into main Mar 19, 2026
7 of 10 checks passed
@jonathanpeppers
jonathanpeppers deleted the dev/jopepper/fix-binskim-glob-pattern branch March 19, 2026 02:36

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

Reverts the BinSkim analyzeTargetGlob customization in the 1ES pipeline configuration, returning to the previously working default behavior while keeping output-only scanning enabled.

Changes:

  • Remove the analyzeTargetGlob override from the BinSkim SDL configuration.
  • Remove associated comments explaining the (now-reverted) custom glob logic.

@github-actions github-actions Bot locked and limited conversation to collaborators Apr 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants