diff --git a/github.go b/github.go index ee3494a9..3f63a8e2 100644 --- a/github.go +++ b/github.go @@ -117,11 +117,7 @@ func auditGithubRepos() ([]Leak, error) { break } if opts.GithubUser != "" { - // if opts.IncludePrivate { - // pagedGithubRepos, resp, err = githubClient.Repositories.List(ctx, "", githubOptions) - // } else { pagedGithubRepos, resp, err = githubClient.Repositories.List(ctx, opts.GithubUser, githubOptions) - // } if err != nil { done = true } diff --git a/gitleaks_test.go b/gitleaks_test.go index cac4f1cf..51833bb1 100644 --- a/gitleaks_test.go +++ b/gitleaks_test.go @@ -269,23 +269,6 @@ func TestRun(t *testing.T) { numLeaks: 0, expectedErrMsg: "unable to generate ssh key: open trash: no such file or directory", }, - { - testOpts: Options{ - Repo: "git@github.com:gitleakstest/gronit.git", - }, - description: "test leak", - numLeaks: 2, - expectedErrMsg: "", - }, - { - testOpts: Options{ - Repo: "git@github.com:gitleakstest/gronit.git", - Disk: true, - }, - description: "test leak", - numLeaks: 2, - expectedErrMsg: "", - }, { testOpts: Options{ Repo: "https://github.com/gitleakstest/gronit.git",