mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
fix(detect): test all allowlists (#1845)
This commit is contained in:
1 parent
4451b455f3
commit
d1c77598da
3 files changed
+20
-2
No files matched your search
+2
-2
@@ -547,10 +547,10 @@ func checkCommitOrPathAllowed(
|
||||
}
|
||||
// These will be checked later.
|
||||
if len(a.Regexes) > 0 {
|
||||
return false, nil
|
||||
continue
|
||||
}
|
||||
if len(a.StopWords) > 0 {
|
||||
return false, nil
|
||||
continue
|
||||
}
|
||||
|
||||
isAllowed = allTrue(allowlistChecks)
|
||||
|
||||
Reference in new issue
Block a user