Skip to main content

Module notify

Module notify 

Source
Expand description

Webhook notifications — forge-guard notify.

Sends audit summaries to Slack and Discord webhooks. Payload builders are pure functions (unit-testable without network); sending is a thin wrapper over the blocking reqwest client.

Structs§

AuditNotification
Summary of an audit/deployment run to be notified about.

Enums§

NotificationKind
Notification platform.

Functions§

build_discord_payload
Build a Discord embeds payload for an audit notification.
build_slack_payload
Build a Slack blocks payload for an audit notification.
configured_min_severity
Minimum configured severity for a platform (default: high).
max_severity
The highest severity across a set of findings.
meets_severity_gate
Whether the highest finding severity meets the given minimum gate.
notify_from_config
Send an audit notification to every configured webhook (best-effort).
resolve_webhook
Resolve the webhook URL for a platform from CLI override or config.
send
Send a JSON payload to a webhook.
severity_from_str
Parse a severity label into a Severity.