trufflehog
trufflehog copied to clipboard
Overhaul NPM detector
Description:
This fixes #1455.
It supersedes #2264 which had a larger scope of changes (adding new detectors + updating existing detectors). I would like to get around to adding the new ones eventually.
Future work
These are minor and could either be done here or another PR.
- Update UUID detector to ignore false positives.
- [ ] UniqueIdentifier (example)
<UniqueIdentifier>{8CDEE807-BC53-E450-C8B8-4DEBB66742D4}</UniqueIdentifier>- [x] CorrelationId (example)
correlationId\u0022:\u00222b37bc2f-fa8d-404f-b10b-8a5f15939b52\u0022}"- [ ] Path parameter? (example)
"codeUri": "https://xxxx.blob.core.windows.net:443/061273aa-2-d61bde93-80ee-5358-9871-99208b854f6a/src",
Checklist:
- [x] Tests passing (
make test-community)? - [x] Lint passing (
make lintthis requires golangci-lint)?