Skip to content

Commit

Permalink
Fix gosec warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaldjorMike committed Mar 13, 2024
1 parent 0a5d50b commit a50776c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ func NewHttpTransport(config Config) *http.Transport {
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,

// #nosec G402
TLSClientConfig: &tls.Config{
InsecureSkipVerify: config.Insecure,
InsecureSkipVerify: config.Insecure, // #nosec G402
},
}
}
Expand All @@ -57,10 +56,9 @@ func NewHttpTransport(config Config) *http.Transport {
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,

// #nosec G402
TLSClientConfig: &tls.Config{
RootCAs: caCertPool,
InsecureSkipVerify: config.Insecure,
InsecureSkipVerify: config.Insecure, // #nosec G402
},
}
}
Expand Down

0 comments on commit a50776c

Please sign in to comment.