Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gosec linter: G101: Potential hardcoded credentials

I get this message from the gosec linter:

foo/cloud.go:34:2: G101: Potential hardcoded credentials (gosec)
        fooAPIKeyENVVar = "Foo_API_KEY"

How to disable this warning?

like image 926
guettli Avatar asked Oct 29 '25 01:10

guettli


1 Answers

This make the warning to get skipped:

fooAPIKeyENVVar = "Foo_API_KEY" // #nosec G101
like image 73
guettli Avatar answered Oct 31 '25 02:10

guettli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!