Skip to content

Commit 977690b

Browse files
authored
added proxy in github transport (#4652)
1 parent cb60db0 commit 977690b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/deployment/gitOps/git/GitServiceGithub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type GitHubClient struct {
2424
func NewGithubClient(host string, token string, org string, logger *zap.SugaredLogger,
2525
gitService GitService) (GitHubClient, error) {
2626
ctx := context.Background()
27-
httpTransport := &http2.Transport{}
27+
httpTransport := &http2.Transport{Proxy: http2.ProxyFromEnvironment}
2828
httpClient := &http2.Client{Transport: httpTransport}
2929
ts := oauth2.StaticTokenSource(
3030
&oauth2.Token{AccessToken: token},

0 commit comments

Comments
 (0)