trufflehog
trufflehog copied to clipboard
Add explicit warning when an overlap is detected
Description:
Similar to #2922, the goal of this change is to provide clear and actionable information if a detection is impacted.
The problem is currently that "verification overlap" doesn't provide useful feedback. Even if you use --results=unknown
to see the error, it doesn't tell you which detectors overlapped.
2024-06-06T08:27:05-04:00 info-0 trufflehog WARNING: A result will not be verified because more than one detector matches. You can override this behavior by using the --allow-verification-overlap flag {"verification_overlap_worker_id": "2hlPu", "detectors": ["AzureSearchAdminKey", "AzureDevopsPersonalAccessToken"]}
Checklist:
- [x] Tests passing (
make test-community
)? - [x] Lint passing (
make lint
this requires golangci-lint)?