mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2026-06-15 13:24:37 +00:00
Refactor GitHub source (#2379)
* refactor(github): cleanup logic * fix(github): lookup wikis per-repo * refactor(github): change scanErrs.String output --------- Co-authored-by: Bill Rich <bill.rich@gmail.com>
This commit is contained in:
co-authored by
Bill Rich
parent
eb0d4ae5d2
commit
80e8a67c2d
@@ -53,11 +53,11 @@ func TestSource_Token(t *testing.T) {
|
||||
}
|
||||
|
||||
s := Source{
|
||||
conn: conn,
|
||||
httpClient: common.SaneHttpClient(),
|
||||
log: logr.Discard(),
|
||||
memberCache: map[string]struct{}{},
|
||||
repoSizes: newRepoSize(),
|
||||
conn: conn,
|
||||
httpClient: common.SaneHttpClient(),
|
||||
log: logr.Discard(),
|
||||
memberCache: map[string]struct{}{},
|
||||
repoInfoCache: newRepoInfoCache(),
|
||||
}
|
||||
s.filteredRepoCache = s.newFilteredRepoCache(memory.New(), nil, nil)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user