mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
Fixed bug where the repo name was removed on a user or org audit. (#344)
This commit is contained in:
1 parent
862f1203ed
commit
01d73028f8
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user