From 01d73028f825ffb4c913002d47bf9edf199060f4 Mon Sep 17 00:00:00 2001 From: Alexander Curtiss Date: Wed, 26 Feb 2020 12:42:44 -0700 Subject: [PATCH] Fixed bug where the repo name was removed on a user or org audit. (#344) --- hosts/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/github.go b/hosts/github.go index 4998cc9b..6d50b469 100644 --- a/hosts/github.go +++ b/hosts/github.go @@ -99,10 +99,10 @@ func (g *Github) Audit() { for _, repo := range githubRepos { r := audit.NewRepo(g.manager) - r.Name = *repo.Name err := r.Clone(&git.CloneOptions{ URL: *repo.CloneURL, }) + r.Name = *repo.Name if err != nil { log.Warn("unable to clone via https and access token, attempting with ssh now") auth, err := options.SSHAuth(g.manager.Opts)