From 2fa580f1bb66ad0eba2d4382a715296324e7246d Mon Sep 17 00:00:00 2001 From: Zachary Rice Date: Fri, 20 Mar 2020 22:44:17 -0400 Subject: [PATCH] fix the empty repo org scan error (#358) --- hosts/github.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosts/github.go b/hosts/github.go index 404f75fc..fe525247 100644 --- a/hosts/github.go +++ b/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 {