Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Ignore common key (#4039)
dylanTrufflecb93ce2c0463
diff --git a/pkg/detectors/privatekey/ssh_integration.go b/pkg/detectors/privatekey/ssh_integration.goindex 5f0a8cbc5..8a36a4a41 100644--- a/pkg/detectors/privatekey/ssh_integration.go+++ b/pkg/detectors/privatekey/ssh_integration.go@@ -115,6 +115,12 @@ func VerifyGitHubUser(ctx context.Context, parsedKey any) (*string, error) {if strings.Contains(output, "successfully authenticated") {username := strings.TrimSuffix(strings.Split(output, " ")[1], "!")+ // This hack is because it's probably one of the most widely distributed github keys+ // and a frequent annoyance.+ // It is active at the time of this commit, but the developer is unresponsive.+ if username == "aaron1234567890123" {+ return nil, nil+ }return &username, nil}