mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
1 parent
973d74e592
commit
86cfe0848b
34 files changed
+232
-36
No files matched your search
@@ -79,6 +79,9 @@ func (r *Rule) HasFileOrPathLeakOnly(filePath string) bool {
|
||||
if len(r.Entropies) != 0 {
|
||||
return false
|
||||
}
|
||||
if r.AllowList.FileAllowed(filepath.Base(filePath)) || r.AllowList.PathAllowed(filePath) {
|
||||
return false
|
||||
}
|
||||
return r.HasFileLeak(filepath.Base(filePath)) || r.HasFilePathLeak(filePath)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user