Added '--skip-regex' and '--skip-word' flags to ignore secrets matching custom patterns or skipwords

This commit is contained in:
Mick Grove 2025-08-19 19:18:25 -07:00
commit bf08d973b4
19 changed files with 1228 additions and 8 deletions

View file

@ -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