fix the empty repo org scan error (#358)

This commit is contained in:
Zachary Rice authored and GitHub committed 2020-03-20 22:44:17 -04:00
1 parent c6f15b768e
commit 2fa580f1bb
1 file changed
+2
+2
View File
@@ -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 {