Skip to content

ci(binskim): drop invalid 'suppressions' field on notifications#177

Merged
prsasattms merged 1 commit into
mainfrom
binskim-go-notif-suppressions
Jun 3, 2026
Merged

ci(binskim): drop invalid 'suppressions' field on notifications#177
prsasattms merged 1 commit into
mainfrom
binskim-go-notif-suppressions

Conversation

@prsasattms

Copy link
Copy Markdown
Collaborator

PR #176 added a suppressions array to demoted toolConfigurationNotifications for audit-trail purposes, but SARIF 2.1.0 only allows suppressions on result objects, not on notifications. The binskim-go SARIF upload on the PR #176 merge commit (sha 26e00cb) failed with:

instance.runs[0].invocations[0].toolConfigurationNotifications[0] is not allowed to have the additional property 'suppressions'

This PR moves the justification text into the notification's message.text (visible inline) and keeps the canonical audit record in binskim_suppressions.json. Level demotion to note and executionSuccessful=true flip are unchanged.

Verified locally against the failed go SARIF — schema validates clean against the OASIS SARIF 2.1.0 JSON schema.

…tions

SARIF 2.1.0 disallows 'suppressions' on toolConfigurationNotifications (only allowed on results). Adding it caused GitHub's SARIF upload for binskim-go to fail with: 'instance.runs[0].invocations[0].toolConfigurationNotifications[0] is not allowed to have the additional property suppressions'. Move the audit-trail justification into the notification's message.text instead; the canonical record lives in binskim_suppressions.json. The level is still demoted to 'note' and executionSuccessful is still flipped to true when no error/warning notifications remain.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@prsasattms prsasattms merged commit 083e124 into main Jun 3, 2026
8 checks passed
@prsasattms prsasattms deleted the binskim-go-notif-suppressions branch June 3, 2026 16:02
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.

2 participants