Explorar el Código

fix the empty repo org scan error (#358)

Zachary Rice hace 5 años
padre
commit
2fa580f1bb
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      hosts/github.go

+ 2 - 0
hosts/github.go

@@ -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 {