forked from mirrors/kingfisher
Added '--skip-regex' and '--skip-word' flags to ignore secrets matching custom patterns or skipwords
This commit is contained in:
parent
36f51afd63
commit
bf08d973b4
19 changed files with 1228 additions and 8 deletions
|
|
@ -106,6 +106,14 @@ pub struct ScanArgs {
|
|||
/// Create or update the baseline file with current findings
|
||||
#[arg(long, default_value_t = false)]
|
||||
pub manage_baseline: bool,
|
||||
|
||||
/// Regex patterns to allow-list secret matches (repeatable)
|
||||
#[arg(long = "skip-regex", value_name = "PATTERN")]
|
||||
pub skip_regex: Vec<String>,
|
||||
|
||||
/// Skipwords to allow-list secret matches (case-insensitive, repeatable)
|
||||
#[arg(long = "skip-word", value_name = "WORD")]
|
||||
pub skip_word: Vec<String>,
|
||||
}
|
||||
|
||||
/// Confidence levels for findings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue