changing ret err to warning for owner-path scan

This commit is contained in:
zach rice committed 2019-11-13 20:03:51 -05:00
1 parent 4d04ea079f
commit 7f0b027486
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -2,8 +2,10 @@ package audit
import (
"fmt"
log "github.com/sirupsen/logrus"
"github.com/zricethezav/gitleaks/manager"
"io/ioutil"
"path"
)
@@ -20,7 +22,7 @@ func Run(m *manager.Manager) error {
}
m.Opts.RepoPath = fmt.Sprintf("%s/%s", m.Opts.OwnerPath, f.Name())
if err := runHelper(NewRepo(m)); err != nil {
return err
log.Warnf("%s is not a git repo, skipping", f.Name())
}
}
return nil
+1
View File
@@ -80,6 +80,7 @@ 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,
})