Skip to content

feat(python-cli-parity): fail scan diffs on blocking findings - #1767

Open
John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
jdalton/surf-2234-strict-blocking
Open

John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
jdalton/surf-2234-strict-blocking

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Port strict blocking for scan diffs. The default gates new findings; --strict-blocking also fails for unchanged findings whose policy action is error.

@cursor

cursor Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Opt-in CI flag with bounded exit-code logic and tests; default behavior is unchanged.

Overview
Adds --strict-blocking to scan diff, wired from the CLI through handleDiffScan into outputDiffScan.

By default, diff output still only gates on new blocking findings in the change set. With --strict-blocking, the command also sets exit code 1 when any unchanged artifact in the diff still carries an alert whose policy action is error.

Unit tests in output-diff-scan.test.mts cover strict mode on/off and non-blocking (warn) unchanged alerts. .gitignore is updated so that test file stays tracked.

Reviewed by Cursor Bugbot for commit ad1f2cd. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit ad1f2cd. Configure here.

Comment thread src/commands/scan/output-diff-scan.mts Resolved
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/surf-2234-strict-blocking branch 2 times, most recently from 3ca8db6 to ec62c4b Compare November 25, 2026 19:14
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/surf-2234-strict-blocking branch from ec62c4b to 61cad0d Compare November 25, 2026 19:32
@jdalton John-David Dalton (jdalton) changed the title feat(python-cli-parity): add strict PR diff blocking feat(python-cli-parity): fail scan diffs on blocking findings Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant