Define multiple allowlists per rule (#1496)

* feat: multiple rule allowlists

* feat(config): add allowlist 'condition'
This commit is contained in:
Richard Gomez authored and GitHub committed 2024-10-14 19:17:37 -05:00
1 parent 8ea608595c
commit aabe381539
26 files changed
+778 -247

No files matched your search

+7 -4
View File
@@ -21,10 +21,13 @@ func SumoLogicAccessID() *config.Rule {
Keywords: []string{
"sumo",
},
Allowlist: config.Allowlist{
RegexTarget: "line",
Regexes: []*regexp.Regexp{
regexp.MustCompile(`sumOf`),
Allowlists: []config.Allowlist{
{
RegexTarget: "line",
Regexes: []*regexp.Regexp{regexp.MustCompile(`sumOf`)},
},
{
Paths: []*regexp.Regexp{regexp.MustCompile(`tests/.+$`)},
},
},
}