mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
fixing test. travis doesnt have rsa id
This commit is contained in:
1 parent
94389137e8
commit
847687a637
2 files changed
-21
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user