mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 21:44:23 +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
|
break
|
||||||
}
|
}
|
||||||
if opts.GithubUser != "" {
|
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)
|
pagedGithubRepos, resp, err = githubClient.Repositories.List(ctx, opts.GithubUser, githubOptions)
|
||||||
// }
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
done = true
|
done = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -269,23 +269,6 @@ func TestRun(t *testing.T) {
|
|||||||
numLeaks: 0,
|
numLeaks: 0,
|
||||||
expectedErrMsg: "unable to generate ssh key: open trash: no such file or directory",
|
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{
|
testOpts: Options{
|
||||||
Repo: "https://github.com/gitleakstest/gronit.git",
|
Repo: "https://github.com/gitleakstest/gronit.git",
|
||||||
|
|||||||
Reference in new issue
Block a user