1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

fix: cast

This commit is contained in:
Carlos Alexandro Becker
2019-01-17 13:59:55 -02:00
committed by Carlos Alexandro Becker
parent 0ef202cb74
commit d95b7f9adc

View File

@ -25,7 +25,7 @@ func NewGitHub(ctx *context.Context) (Client, error) {
&oauth2.Token{AccessToken: ctx.Token},
)
httpClient := oauth2.NewClient(ctx, ts)
httpClient.Transport.(*http.Transport).TLSClientConfig = &tls.Config{
httpClient.Transport.(*oauth2.Transport).Base.(*http.Transport).TLSClientConfig = &tls.Config{
InsecureSkipVerify: ctx.Config.GitHubURLs.SkipTLSVerify,
}
client := github.NewClient(httpClient)