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§
- Audit
Notification - Summary of an audit/deployment run to be notified about.
Enums§
- Notification
Kind - Notification platform.
Functions§
- build_
discord_ payload - Build a Discord
embedspayload for an audit notification. - build_
slack_ payload - Build a Slack
blockspayload 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.