mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-14 08:57:40 +00:00
readd email check
This commit is contained in:
parent
ac15b39e72
commit
1176a7a853
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
|
|||
apiKeyRes := strings.TrimSpace(apiKeyMatch[1])
|
||||
|
||||
for _, emailMatch := range emailMatches {
|
||||
if len(emailMatch) != 2 {
|
||||
continue
|
||||
}
|
||||
emailRes := strings.TrimSpace(emailMatch[1])
|
||||
|
||||
if detectors.IsKnownFalsePositive(apiKeyRes, detectors.DefaultFalsePositives, true) { // wait- (apiKeyRes, email) might be false positive does not mean (apiKeyRes, another_email) is ?
|
||||
|
|
Loading…
Reference in a new issue