From 073ea1175edc41438ba7cccb3b2807c2f4634138 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Sun, 20 Aug 2023 15:48:56 +0000 Subject: [PATCH] Fix TLS client bug The CA bundle must be set on RootCAs to properly validate the remote server. Signed-off-by: Gabriel Adrian Samfira --- util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/util.go b/util/util.go index 50d1142d..8a26cbd1 100644 --- a/util/util.go +++ b/util/util.go @@ -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}