Skip to content

feat(python-cli-parity): include reachability in Slack notifications - #1835

Open
John-David Dalton (jdalton) wants to merge 1 commit into
parity/2243-slack-botfrom
parity/2246-slack-reachability
Open

John-David Dalton (jdalton) wants to merge 1 commit into
parity/2243-slack-botfrom
parity/2246-slack-reachability

Conversation

@jdalton

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

Copy link
Copy Markdown
Contributor

The Socket Python CLI includes reachability findings in Slack so reviewers can see whether their code calls an affected dependency. This PR adds reachability details to Socket CLI webhook and bot messages. Run the scan with --reach and a Slack destination configured.

@cursor

cursor Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Changes are confined to optional Slack notification formatting and filtering; scan pass/fail behavior is unchanged and delivery failures remain warnings only.

Overview
Adds reachability-aware Slack notifications when socket scan create --report runs with --reach, aligning with the Python CLI (SURF-2246).

The scan create path now loads reachability facts (when Slack is configured) and passes reachabilityEnabled and reachabilityFacts into diff/full report notification context before the facts file is removed.

Notification reports merge Coana facts with scan/diff alerts: each finding can show reachable / potentially reachable / unreachable / unclassified, plus a capped call trace for confirmed reachable issues. Facts-only vulnerabilities without a matching alert are emitted as separate reachabilityFindings with their own summary.

Slack webhook and bot delivery includes reachability lines and traces in messages, merges filtered reachability-only rows, and supports reachability_alerts_only: true on a destination to notify only confirmed-reachable items. Docs for scan report describe the new flags.

Tests cover fact matching, malformed facts, facts-only delivery, and Slack filtering/formatting.

Reviewed by Cursor Bugbot for commit 93a8718. Configure here.

@jdalton John-David Dalton (jdalton) changed the title parity/2246 slack reachability feat(python-cli-parity): include reachability in Slack notifications Dec 4, 2026

@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 4 potential issues.

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 93a8718. Configure here.

@jdalton
John-David Dalton (jdalton) force-pushed the parity/2246-slack-reachability branch 2 times, most recently from 459af52 to b285af2 Compare December 4, 2026 14:38

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