trufflehog
trufflehog copied to clipboard
[Testing] Avoid duplicate verification requests which happen concurrently
Description:
This PR introduces a detector-level cache to store verification results, allowing reuse for duplicate findings. To enhance security, secrets will be hashed using XXHash before being added to the cache.
More details: https://github.com/trufflesecurity/trufflehog/issues/2262
Note: This is the first example implementation, if approved we will implement this in the most used detectors.
Checklist:
- [x] Tests passing (
make test-community)? - [x] Lint passing (
make lintthis requires golangci-lint)?