You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Socket Python CLI can send scan-level findings to Slack and Jira for teams that want CI results routed into their existing work channels and tracking tools. These per-run messages complement managed organization notifications, which follow alert lifecycle events.
This PR sends Slack webhooks, Slack bot channels, and Jira tasks independently so a failure in one provider does not prevent delivery to the others. It documents how the per-run report flow differs from managed integrations and where both can report the same default-branch finding.
Configure notifications in trusted CI jobs:
Slack webhooks: set SOCKET_SLACK_CONFIG_JSON with a webhook URL; optionally set SOCKET_SLACK_LEVELS to block,warn (the default).
Slack bot: set SOCKET_SLACK_BOT_TOKEN and include bot_configs with channel IDs in SOCKET_SLACK_CONFIG_JSON.
Jira: set SOCKET_JIRA_ENABLED=true and provide SOCKET_JIRA_CONFIG_JSON with the HTTPS Jira URL, account email, API token, and project key.
Jira creates one Task for a report with findings and updates it on reruns for the same repository, branch, pull request, and commit. Managed notification settings remain in Socket organization integrations.
Low Risk
Changes are limited to notification dispatch ordering/isolation and documentation; scan policy outcomes stay unchanged when delivery fails.
Overview Per-run Slack and Jira notifications are now treated as three independent providers in dispatchScanNotifications: Jira, Slack incoming webhooks (isSlackWebhookConfigured), and Slack bot posts (gated on SOCKET_SLACK_BOT_TOKEN). A failure in one channel no longer blocks the others, including when webhook and Jira reject while the bot path still runs.
Docs in report.md state that scan create and diff report flows can use the same Slack/Jira env configuration (examples use socket scan create --report instead of socket ci). A new section contrasts managed organization alert lifecycle notifications with per-run CI summaries, notes overlap on default-branch scans, and points credential configuration at trusted CI secrets vs Socket org integrations.
A Vitest case in dispatch.test.mts locks in that the same NotificationReport (including diff scans with reachability findings) is delivered to all enabled providers despite errors from Jira and the webhook.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Socket Python CLI can send scan-level findings to Slack and Jira for teams that want CI results routed into their existing work channels and tracking tools. These per-run messages complement managed organization notifications, which follow alert lifecycle events.
This PR sends Slack webhooks, Slack bot channels, and Jira tasks independently so a failure in one provider does not prevent delivery to the others. It documents how the per-run report flow differs from managed integrations and where both can report the same default-branch finding.
Configure notifications in trusted CI jobs:
SOCKET_SLACK_CONFIG_JSONwith a webhook URL; optionally setSOCKET_SLACK_LEVELStoblock,warn(the default).SOCKET_SLACK_BOT_TOKENand includebot_configswith channel IDs inSOCKET_SLACK_CONFIG_JSON.SOCKET_JIRA_ENABLED=trueand provideSOCKET_JIRA_CONFIG_JSONwith the HTTPS Jira URL, account email, API token, and project key.Jira creates one Task for a report with findings and updates it on reruns for the same repository, branch, pull request, and commit. Managed notification settings remain in Socket organization integrations.