Skip to content

Commit 0fdf538

Browse files
committed
fix #nosec line placement
Signed-off-by: Jonah Back <jonah@jonahback.com>
1 parent 9330efd commit 0fdf538

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/config/tlscfg/options.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ func (p Options) Config() (*tls.Config, error) {
4343
if err != nil {
4444
return nil, errors.Wrap(err, "failed to load CA CertPool")
4545
}
46-
46+
// #nosec G402
4747
tlsCfg := &tls.Config{
48-
RootCAs: certPool,
49-
ServerName: p.ServerName,
50-
// #nosec G402
48+
RootCAs: certPool,
49+
ServerName: p.ServerName,
5150
InsecureSkipVerify: p.SkipHostVerify,
5251
}
5352

0 commit comments

Comments
 (0)