mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
changing ret err to warning for owner-path scan
This commit is contained in:
1 parent
4d04ea079f
commit
7f0b027486
2 files changed
+4
-1
No files matched your search
+3
-1
@@ -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
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user