Fix TLS client bug
The CA bundle must be set on RootCAs to properly validate the remote server. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
bc0a34bae9
commit
073ea1175e
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ func GithubClient(ctx context.Context, token string, credsDetails params.GithubC
|
|||
}
|
||||
httpTransport := &http.Transport{
|
||||
TLSClientConfig: &tls.Config{
|
||||
ClientCAs: roots,
|
||||
RootCAs: roots,
|
||||
},
|
||||
}
|
||||
httpClient := &http.Client{Transport: httpTransport}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue