diff --git a/plugin/remote/gitlab/gitlab.go b/plugin/remote/gitlab/gitlab.go index 6bdbd0de8..984eed6b9 100644 --- a/plugin/remote/gitlab/gitlab.go +++ b/plugin/remote/gitlab/gitlab.go @@ -1,6 +1,7 @@ package gitlab import ( + "crypto/tls" "fmt" "io/ioutil" "net/http" @@ -278,6 +279,10 @@ func (r *Gitlab) GetToken(user *model.User) (*model.Token, error) { RefreshToken: user.Secret, Expiry: expiry, }, + Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, + TLSClientConfig: &tls.Config{InsecureSkipVerify: r.SkipVerify}, + }, } if err := t.Refresh(); err != nil {