mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
fix the empty repo org scan error (#358)
This commit is contained in:
1 parent
c6f15b768e
commit
2fa580f1bb
1 file changed
+2
@@ -120,6 +120,7 @@ func (g *Github) Audit() {
|
||||
auth, err := options.SSHAuth(g.manager.Opts)
|
||||
if err != nil {
|
||||
log.Warnf("unable to get ssh auth, skipping clone and audit for repo %s: %+v\n", *repo.CloneURL, err)
|
||||
continue
|
||||
}
|
||||
err = r.Clone(&git.CloneOptions{
|
||||
URL: *repo.SSHURL,
|
||||
@@ -127,6 +128,7 @@ func (g *Github) Audit() {
|
||||
})
|
||||
if err != nil {
|
||||
log.Warnf("err cloning %s, skipping clone and audit: %+v\n", *repo.SSHURL, err)
|
||||
continue
|
||||
}
|
||||
}
|
||||
if err = r.Audit(); err != nil {
|
||||
|
||||
Reference in new issue
Block a user