Use custom fp logic for private keys (#2793)

This commit is contained in:
ahrav 2024-05-06 14:41:00 -07:00 committed by GitHub
parent b24b1150ad
commit 27eae925de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,6 +25,7 @@ type Scanner struct {
// Ensure the Scanner satisfies the interface at compile time.
var _ detectors.Detector = (*Scanner)(nil)
var _ detectors.CustomFalsePositiveChecker = (*Scanner)(nil)
var (
// 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
}
func (s Scanner) IsFalsePositive(_ detectors.Result) bool { return false }
type result struct {
CertificateURLs []string
GitHubUsername string