forked from mirrors/kingfisher
webhook support and kingfisher configuration yaml support
This commit is contained in:
parent
a4cf3990a5
commit
0e1fe0cede
15 changed files with 726 additions and 30 deletions
|
|
@ -229,7 +229,10 @@ pub struct ScanArgs {
|
|||
pub alert_webhook: Vec<String>,
|
||||
|
||||
/// Format for `--alert-webhook` payloads. Default is inferred from the URL
|
||||
/// host (slack.com → slack, *.office.com → teams, otherwise generic).
|
||||
/// host (slack.com → slack, *.office.com → teams, discord.com → discord,
|
||||
/// chat.googleapis.com → googlechat, otherwise generic). Mattermost is
|
||||
/// self-hosted and never inferred — pass `--alert-format mattermost`
|
||||
/// explicitly.
|
||||
#[arg(global = true, long = "alert-format", value_name = "FORMAT")]
|
||||
pub alert_format: Option<crate::alerts::AlertFormat>,
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
//! alerts:
|
||||
//! webhooks:
|
||||
//! - url: https://hooks.slack.com/services/...
|
||||
//! format: slack # slack | teams | generic
|
||||
//! format: slack # slack | teams | generic | discord | mattermost | googlechat
|
||||
//! on: findings # findings | always
|
||||
//! min_confidence: medium # low | medium | high
|
||||
//! include_secret: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue