mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
Use allowlist (#411)
This commit is contained in:
1 parent
fe69a17c9c
commit
94f5950d68
21 files changed
+111
-111
No files matched your search
+2
-2
@@ -76,8 +76,8 @@ func Run(m *manager.Manager) error {
|
||||
}
|
||||
|
||||
func runHelper(r *Repo) error {
|
||||
// Ignore whitelisted repos
|
||||
for _, wlRepo := range r.Manager.Config.Whitelist.Repos {
|
||||
// Ignore allowlisted repos
|
||||
for _, wlRepo := range r.Manager.Config.Allowlist.Repos {
|
||||
if RegexMatched(r.Manager.Opts.RepoPath, wlRepo) {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user