fix: use base url for proxy check

This commit is contained in:
Peter Evans 2022-12-13 13:15:44 +09:00
parent 3af7a9ca6a
commit a3b217da0b
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ export const Octokit = Core.plugin(
// Octokit plugin to support the standard environment variables http_proxy, https_proxy and no_proxy
function autoProxyAgent(octokit: Core) {
octokit.hook.before('request', options => {
const proxy = getProxyForUrl(options.url)
const proxy = getProxyForUrl(options.baseUrl)
if (proxy) {
options.request.agent = new HttpsProxyAgent(proxy)
}