diff --git a/remote/github/github.go b/remote/github/github.go index 026380cd..abd05dc1 100644 --- a/remote/github/github.go +++ b/remote/github/github.go @@ -67,6 +67,9 @@ func New(opts Opts) (remote.Remote, error) { remote.URL = strings.TrimSuffix(opts.URL, "/") remote.API = remote.URL + "/api/v3/" } + + // Hack to enable oauth2 access in older GHE + oauth2.RegisterBrokenAuthHeaderProvider(remote.URL) return remote, nil }