diff --git a/github/provider.go b/github/provider.go index aa278b95d3..754d7e6455 100644 --- a/github/provider.go +++ b/github/provider.go @@ -398,7 +398,7 @@ func tokenFromGhCli(baseURL string) (string, error) { } hostname := "" if baseURL == "" { - hostname = "api.github.com" + hostname = "github.com" } else { parsedURL, err := url.Parse(baseURL) if err != nil {