Whitelist repo (#378)

* fixing commit latest bug

* bumping go-git and adding repo whitelist

* adding tests
This commit is contained in:
Zachary Rice authored and GitHub committed 2020-05-09 10:38:02 -04:00
1 parent 8bd4649b01
commit 473d0d55a7
12 files changed
+282 -65

No files matched your search

+5 -5
View File
@@ -10,13 +10,13 @@ import (
"github.com/zricethezav/gitleaks/v4/manager"
"github.com/zricethezav/gitleaks/v4/options"
"github.com/google/go-github/v29/github"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object"
"github.com/go-git/go-git/v5/plumbing/transport"
"github.com/google/go-github/v31/github"
log "github.com/sirupsen/logrus"
"golang.org/x/oauth2"
"gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/plumbing/object"
"gopkg.in/src-d/go-git.v4/plumbing/transport"
)
// Github wraps a github client and manager. This struct implements what the Host interface defines.