Skip to content

Fix notifiers reading repo/branch from wrong source#30

Open
dc-larsen wants to merge 2 commits intomainfrom
fix/webhook-notifier-repo-branch
Open

Fix notifiers reading repo/branch from wrong source#30
dc-larsen wants to merge 2 commits intomainfrom
fix/webhook-notifier-repo-branch

Conversation

@dc-larsen
Copy link
Contributor

Summary

  • Webhook, Slack, MS Teams, MS Sentinel, and SumoLogic notifiers read repository and branch from self.config, which never contains these fields, resulting in "Unknown" for both values in all outbound payloads
  • The NotificationManager correctly populates these in the facts dict (manager.py:279-280), and the Jira notifier already reads from facts correctly
  • Changed all five notifiers to read from facts instead of self.config

Test plan

  • Verified self.config only contains init params (e.g. url), never repository/branch
  • Verified facts dict contains correct repository and branch after NotificationManager.notify_all() populates them
  • Tested WebhookNotifier, SlackNotifier, and SumoLogicNotifier with mock data, all return correct repo/branch
  • Run Socket Basics scan with webhook enabled to confirm payload includes real repo/branch values

Webhook, Slack, MS Teams, MS Sentinel, and SumoLogic notifiers read
repository and branch from self.config, which never contains these
fields. The NotificationManager populates them in the facts dict
(manager.py:279-280), matching the pattern the Jira notifier already
uses correctly.

Changed all five notifiers to read from facts instead of self.config.
@dc-larsen dc-larsen requested a review from a team as a code owner February 12, 2026 14:52
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