Skip to content

Commit

Permalink
added proxy in github transport (#4652)
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-579 committed Feb 9, 2024
1 parent cb60db0 commit 977690b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/deployment/gitOps/git/GitServiceGithub.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type GitHubClient struct {
func NewGithubClient(host string, token string, org string, logger *zap.SugaredLogger,
gitService GitService) (GitHubClient, error) {
ctx := context.Background()
httpTransport := &http2.Transport{}
httpTransport := &http2.Transport{Proxy: http2.ProxyFromEnvironment}
httpClient := &http2.Client{Transport: httpTransport}
ts := oauth2.StaticTokenSource(
&oauth2.Token{AccessToken: token},
Expand Down

0 comments on commit 977690b

Please sign in to comment.