Skip to content

feat(python-cli-parity): add strict blocking to socket ci - #1830

Open
John-David Dalton (jdalton) wants to merge 1 commit into
jdalton/surf-2221-match-python-cli-scan-comparison-and-gatefrom
jdalton/surf-2211-port-core-scan-and-blocking-behavior
Open

John-David Dalton (jdalton) wants to merge 1 commit into
jdalton/surf-2221-match-python-cli-scan-comparison-and-gatefrom
jdalton/surf-2211-port-core-scan-and-blocking-behavior

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

The Socket Python CLI's --strict-blocking option fails pull-request scans when a blocking finding remains on an unchanged dependency.

This PR adds that behavior to socket ci; pass --strict-blocking to enable it, while --disable-blocking still takes precedence.

@cursor

cursor Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Opt-in change to CI pass/fail semantics for PR diffs; teams enabling it will see more failed builds, but default behavior is unchanged.

Overview
Adds --strict-blocking to socket ci (default off) so pull-request scans can fail on blocking alerts on unchanged dependencies, not only on newly introduced ones—matching the Python CLI. --disable-blocking still wins when both are set.

The flag is threaded through the CI scan path into PR diff handling, and getDiffScanBlocking / getDiffScanVerdict now treat artifacts.unchanged error-level alerts as blocking when strict mode is on. That affects process exit code, provider callbacks (e.g. GitLab status), and python-v1 JSON (unchanged_alerts, decision: fail). Docs and help text are updated; tests cover verdict logic, diff output, and an end-to-end handleCi case.

Reviewed by Cursor Bugbot for commit 7244a0f. 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 high 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 7244a0f. Configure here.

Comment thread src/commands/ci/handle-ci.mts Resolved
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/surf-2211-port-core-scan-and-blocking-behavior branch from 7244a0f to aa7ce5b Compare December 4, 2026 05:56
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/surf-2211-port-core-scan-and-blocking-behavior branch from aa7ce5b to 4654c15 Compare December 4, 2026 14:38
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/surf-2211-port-core-scan-and-blocking-behavior branch 2 times, most recently from 75a0132 to 756bc49 Compare December 4, 2026 17:41
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/surf-2211-port-core-scan-and-blocking-behavior branch from 756bc49 to e94eda3 Compare December 4, 2026 18:03

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