mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
Use custom fp logic for private keys (#2793)
This commit is contained in:
parent
b24b1150ad
commit
27eae925de
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,7 @@ type Scanner struct {
|
||||||
|
|
||||||
// Ensure the Scanner satisfies the interface at compile time.
|
// Ensure the Scanner satisfies the interface at compile time.
|
||||||
var _ detectors.Detector = (*Scanner)(nil)
|
var _ detectors.Detector = (*Scanner)(nil)
|
||||||
|
var _ detectors.CustomFalsePositiveChecker = (*Scanner)(nil)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// TODO: add base64 encoded key support
|
// TODO: add base64 encoded key support
|
||||||
|
@ -145,6 +146,8 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
|
||||||
return results, nil
|
return results, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s Scanner) IsFalsePositive(_ detectors.Result) bool { return false }
|
||||||
|
|
||||||
type result struct {
|
type result struct {
|
||||||
CertificateURLs []string
|
CertificateURLs []string
|
||||||
GitHubUsername string
|
GitHubUsername string
|
||||||
|
|
Loading…
Reference in a new issue