mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
init
This commit is contained in:
1 parent
f90a00b564
commit
2b995fda44
8 files changed
+568
-495
No files matched your search
@@ -130,7 +130,7 @@ func cloneGitlabRepo(tempDir string, p *gitlab.Project) (*RepoDescriptor, error)
|
||||
return nil, fmt.Errorf("skipping %s, excluding forks", p.Name)
|
||||
}
|
||||
|
||||
for _, re := range whiteListRepos {
|
||||
for _, re := range config.WhiteList.repos {
|
||||
if re.FindString(p.Name) != "" {
|
||||
return nil, fmt.Errorf("skipping %s, whitelisted", p.Name)
|
||||
}
|
||||
@@ -140,9 +140,9 @@ func cloneGitlabRepo(tempDir string, p *gitlab.Project) (*RepoDescriptor, error)
|
||||
URL: p.HTTPURLToRepo,
|
||||
}
|
||||
|
||||
if sshAuth != nil {
|
||||
if config.sshAuth != nil {
|
||||
opt.URL = p.SSHURLToRepo
|
||||
opt.Auth = sshAuth
|
||||
opt.Auth = config.sshAuth
|
||||
}
|
||||
|
||||
log.Infof("cloning: %s", p.Name)
|
||||
|
||||
Reference in new issue
Block a user