trufflehog/pkg/sources
ahrav 31844b12e3
[oc-313] - Add GitHub metrics (#1324)
* Normalize repos during enumeration.

* fix test.

* Add benchmark.

* Add benchmark.

* Add more realistic benchmark values.

* add gist mocks.

* Remove old normalize fxn.

* abstract away the repo cache.

* update test.

* increase repo count.

* increase page limnit to 100.

* move callee fxns below caller for Chunks.

* Add context to normalize.

* remove extra logic in normalize repo.

* Delete new.txt

* Delete old.txt

* Handle errors in a thread safe manner.

* fix test.'

* fix test.

* handle repos that are included by users.

* Abstract include ignore logic within repoCache.

* Add better comment around repoCache.

* Rename params.

* remove commented out code.

* use repos instead of items.

* remove commented out code.

* Use ++ instead of atomic increment.

* update to use logger var.

* use cache pkg.

* Use separate file for repo logic.

* Address comments.

* fix test.

* make less sucky test.

* Update test.

* Add logs for duration and repo size.

* fix integration test.

* address comment.
2023-05-16 08:45:28 -07:00
..
circleci update circle test because workflows expire and need re-running (#1251) 2023-04-10 16:21:19 -07:00
filesystem Support file scanning in filesystem source (#1030) 2023-02-27 12:15:05 -06:00
gcs use md5 hash for checking if key exists. (#1257) 2023-05-15 10:04:14 -07:00
git git worktree scanning fix for #827 (#1315) 2023-05-09 08:00:47 -07:00
github [oc-313] - Add GitHub metrics (#1324) 2023-05-16 08:45:28 -07:00
gitlab [chore] Remove logrus from circleci, filesystem, gitlab, and s3 sources (#1089) 2023-02-10 11:02:55 -06:00
s3 Add max object size flag for s3 bucket scanning (#1294) 2023-04-26 15:39:43 -07:00
syslog [chore] Remove logrus from trufflehog (#1095) 2023-02-14 17:00:07 -06:00
chunker.go [chore] Remove logrus from trufflehog (#1095) 2023-02-14 17:00:07 -06:00
chunker_test.go Change chunker test source (#959) 2022-12-06 12:45:08 -08:00
errors.go Implement String for ScanErrors (#1131) 2023-02-27 21:02:59 -06:00
errors_test.go Implement String for ScanErrors (#1131) 2023-02-27 21:02:59 -06:00
resume.go [chore] Remove logrus from circleci, filesystem, gitlab, and s3 sources (#1089) 2023-02-10 11:02:55 -06:00
resume_test.go [chore] Remove logrus from circleci, filesystem, gitlab, and s3 sources (#1089) 2023-02-10 11:02:55 -06:00
sources.go Add max object size flag for s3 bucket scanning (#1294) 2023-04-26 15:39:43 -07:00
test_helpers.go fix github integration tests (#1042) 2023-01-25 08:57:39 -08:00