Skip to content

Commit

Permalink
More debug values to diagnose error
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-murray authored Oct 11, 2024
1 parent f9a6e5b commit 5b6c23f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dist/main/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/post/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib/github-application.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const jwt = require('jsonwebtoken')
, core = require('@actions/core')
, PrivateKey = require('./private-key')
, HttpsProxyAgent = require('https-proxy-agent').HttpsProxyAgent
, URL = require('url')
, URL = require('node:url')
;

module.exports.create = (privateKey, applicationId, baseApiUrl, timeout, proxy) => {
Expand Down Expand Up @@ -236,10 +236,10 @@ function getProxyAgent(proxy, baseUrl) {
function proxyExcluded(noProxy, baseUrl) {
if (noProxy) {
const noProxyHosts = noProxy.split(',').map(part => part.trim());
const baseUrlHost = new URL(baseUrl).host;

core.debug(`noProxyHosts = ${JSON.stringify(noProxyHosts)}`);
core.debug(`baseUrlHost = ${baseUrlHost}`);

const baseUrlHost = new URL(baseUrl).host;
core.debug(`base url host = '${baseUrlHost}'`);

return noProxyHosts.indexOf(baseUrlHost) > -1;
}
Expand Down

0 comments on commit 5b6c23f

Please sign in to comment.