From 096404048da647e5b9b985b7000c4161cb19ebbc Mon Sep 17 00:00:00 2001 From: rcchopra Date: Wed, 20 Aug 2025 23:45:34 +0530 Subject: [PATCH] proxy support --- scm/driver/github/github.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scm/driver/github/github.go b/scm/driver/github/github.go index 7f820523..a9e881d9 100644 --- a/scm/driver/github/github.go +++ b/scm/driver/github/github.go @@ -58,12 +58,14 @@ func NewWithProxy(uri, proxyURL string) (*scm.Client, error) { client.Users = &userService{client} client.Webhooks = &webhookService{client} + client.Client.Client = &http.Client{Transport: http.DefaultTransport} + if proxyURL != "" { transport, err := proxy.NewTransport(http.DefaultTransport, proxyURL) if err != nil { return nil, err } - client.Client.Client = &http.Client{Transport: transport} + client.Client.Client.Transport = transport } return client.Client, nil