Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
chore: fix some comments (#2903)
jinjiadu911ea4d678fd
diff --git a/pkg/detectors/bitfinex/bitfinex.go b/pkg/detectors/bitfinex/bitfinex.goindex 11d33230e..7ec56f865 100644--- a/pkg/detectors/bitfinex/bitfinex.go+++ b/pkg/detectors/bitfinex/bitfinex.go@@ -88,7 +88,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- // By appending resutls in the outer loop we can reduce false positives if there are multiple+ // By appending results in the outer loop we can reduce false positives if there are multiple// combinations of secrets and IDs found.if len(apiSecretMatches) > 0 {results = append(results, s1)diff --git a/pkg/detectors/detectors.go b/pkg/detectors/detectors.goindex f71c61b51..400dbcecf 100644--- a/pkg/detectors/detectors.go+++ b/pkg/detectors/detectors.go@@ -63,7 +63,7 @@ type Result struct {verificationError error}-// SetVerificationError is the only way to set a verification error. Any sensetive values should be passed-in as secrets to be redacted.+// SetVerificationError is the only way to set a verification error. Any sensitive values should be passed-in as secrets to be redacted.func (r *Result) SetVerificationError(err error, secrets ...string) {if err != nil {r.verificationError = redactSecrets(err, secrets...)