False Positive - Go - secrets:S6692 - Well known reCaptcha test key raising issue

  • Go

  • secrets:S6692

  • This specific value is a test key (6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe) used for reCaptcha link to reCaptcha documentation, so this is not actually a secret and it should not raise an issue.

  • Using SonarCloud

  • Code sample

func VerifyCaptcha(ctx context.Context) error {
     if secretKey == "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe" {
          ...
     }
}
2 Likes

Hello Aleks!

Indeed, I don’t know if it was you, but I just read the SonarCloud feedback where someone told us about this one, too.

I just made a PR to fix that. Thanks a lot for your feedback! Our secret detection is pretty fresh, so that’s much appreciated :slight_smile:

Cheers!

Loris

1 Like

Thank you Loris, what a reactivity !

Have a good week,

Cheers

2 Likes