mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
working tests out
This commit is contained in:
1 parent
256ace38d7
commit
7bd55e33b5
10 files changed
+144
-141
No files matched your search
+4
-4
@@ -21,8 +21,8 @@ import (
|
||||
var githubPages = 100
|
||||
|
||||
// auditPR audits a single github PR
|
||||
func auditGithubPR() ([]*Leak, error) {
|
||||
var leaks []*Leak
|
||||
func auditGithubPR() ([]Leak, error) {
|
||||
var leaks []Leak
|
||||
ctx := context.Background()
|
||||
githubClient := github.NewClient(githubToken())
|
||||
splits := strings.Split(opts.GithubPR, "/")
|
||||
@@ -91,7 +91,7 @@ func auditGithubPR() ([]*Leak, error) {
|
||||
// First, we gather all the github repositories from the github api (this doesnt actually clone the repo).
|
||||
// After all the repos have been pulled from github's api we proceed to audit the repos by calling auditGithubRepo.
|
||||
// If an error occurs during an audit of a repo, that error is logged but won't break the execution cycle.
|
||||
func auditGithubRepos() ([]*Leak, error) {
|
||||
func auditGithubRepos() ([]Leak, error) {
|
||||
var (
|
||||
err error
|
||||
githubRepos []*github.Repository
|
||||
@@ -100,7 +100,7 @@ func auditGithubRepos() ([]*Leak, error) {
|
||||
githubOrgOptions *github.RepositoryListByOrgOptions
|
||||
githubOptions *github.RepositoryListOptions
|
||||
done bool
|
||||
leaks []*Leak
|
||||
leaks []Leak
|
||||
ownerDir string
|
||||
)
|
||||
ctx := context.Background()
|
||||
|
||||
Reference in new issue
Block a user