feat(slack): update token regex (#1161)

This commit is contained in:
Richard Gomez authored and GitHub committed 2023-06-15 07:17:01 -05:00
1 parent 86197b0848
commit 463d24618f
4 files changed
+316 -23

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ func validate(r config.Rule, truePositives []string, falsePositives []string) *c
}
for _, fp := range falsePositives {
if len(d.DetectString(fp)) != 0 {
log.Fatal().Msgf("Failed to validate (fp) [%s]", r.RuleID)
log.Fatal().Msgf("Failed to validate. For rule ID [%s], false positive [%s] was detected by regexp [%s]", r.RuleID, fp, r.Regex)
}
}
return &r