mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
whitelist repo update
This commit is contained in:
1 parent
9272e1e556
commit
21b59fab5d
4 files changed
+29
-12
No files matched your search
@@ -188,9 +188,9 @@ func cloneGithubRepo(githubRepo *github.Repository) (*RepoDescriptor, error) {
|
||||
if opts.ExcludeForks && githubRepo.GetFork() {
|
||||
return nil, fmt.Errorf("skipping %s, excluding forks", *githubRepo.Name)
|
||||
}
|
||||
for _, repoName := range whiteListRepos {
|
||||
if repoName == *githubRepo.Name {
|
||||
return nil, fmt.Errorf("skipping %s, whitelisted", repoName)
|
||||
for _, re := range whiteListRepos {
|
||||
if re.FindString(*githubRepo.Name) != "" {
|
||||
return nil, fmt.Errorf("skipping %s, whitelisted", *githubRepo.Name)
|
||||
}
|
||||
}
|
||||
log.Infof("cloning: %s", *githubRepo.Name)
|
||||
|
||||
Reference in new issue
Block a user