Open Choraden opened 1 year ago
I have doubts about the quality of the linter. This is ok.
tlsCfg := new(tls.Config)
This is wrong.
G402: TLS MinVersion too low. (gosec)
tlsCfg := &tls.Config{}
Another example:
tlsCfg := &tls.Config{
MinVersion: tls.VersionTLS12,
InsecureSkipVerify: true,
}
G402: TLS InsecureSkipVerify set true. (gosec)
But this is ok
tlsCfg := &tls.Config{
MinVersion: tls.VersionTLS12,
}
tlsCfg.InsecureSkipVerify = true
The gosec linter was disabled in ed512616.