diff --git a/src/octokit-client.ts b/src/octokit-client.ts index afb1c3ec2..19ee4fd64 100644 --- a/src/octokit-client.ts +++ b/src/octokit-client.ts @@ -25,7 +25,7 @@ function autoProxyAgent(octokit: Core) { const agent = new HttpsProxyAgent(proxy) octokit.hook.before('request', options => { - if (noProxyArray.includes(options.request.hostname)) { + if (noProxyArray.includes(options.request.hostname) || noProxyArray.includes( new URL(options.baseUrl).host) { return } options.request.agent = agent