mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
feat(slack): update token regex (#1161)
This commit is contained in:
1 parent
86197b0848
commit
463d24618f
4 files changed
+316
-23
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user