Update golangci-lint version in CI workflow

This commit is contained in:
Joel Speed
2021-02-17 20:25:37 +00:00
parent 76269a13b7
commit 9cea4ea89b
7 changed files with 23 additions and 13 deletions
+4 -4
View File
@@ -41,10 +41,10 @@ func Validate(o *options.Options) error {
} else if len(o.ProviderCAFiles) > 0 {
pool, err := util.GetCertPool(o.ProviderCAFiles)
if err == nil {
transport := &http.Transport{
TLSClientConfig: &tls.Config{
RootCAs: pool,
},
transport := http.DefaultTransport.(*http.Transport).Clone()
transport.TLSClientConfig = &tls.Config{
RootCAs: pool,
MinVersion: tls.VersionTLS12,
}
http.DefaultClient = &http.Client{Transport: transport}