Skip to content

Commit 37519bc

Browse files
committed
20230307A
1 parent 173128e commit 37519bc

File tree

2 files changed

+40
-25
lines changed

2 files changed

+40
-25
lines changed

hugoalh.GitHubActionsToolkit/module/nodejs-wrapper/dist/main.js

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ const util_1 = __nccwpck_require__(3837);
14031403
const url_1 = __nccwpck_require__(7310);
14041404
const perf_hooks_1 = __nccwpck_require__(4074);
14051405
const status_reporter_1 = __nccwpck_require__(80);
1406-
const http_client_1 = __nccwpck_require__(3569);
1406+
const http_client_1 = __nccwpck_require__(7794);
14071407
const http_manager_1 = __nccwpck_require__(1760);
14081408
const upload_gzip_1 = __nccwpck_require__(8921);
14091409
const requestUtils_1 = __nccwpck_require__(4580);
@@ -1902,8 +1902,8 @@ exports.digestForStream = exports.sleep = exports.getProperRetention = exports.r
19021902
const crypto_1 = __importDefault(__nccwpck_require__(6113));
19031903
const fs_1 = __nccwpck_require__(7147);
19041904
const core_1 = __nccwpck_require__(7733);
1905-
const http_client_1 = __nccwpck_require__(3569);
1906-
const auth_1 = __nccwpck_require__(6931);
1905+
const http_client_1 = __nccwpck_require__(7794);
1906+
const auth_1 = __nccwpck_require__(4610);
19071907
const config_variables_1 = __nccwpck_require__(4233);
19081908
const crc64_1 = __importDefault(__nccwpck_require__(3477));
19091909
/**
@@ -2421,8 +2421,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
24212421
};
24222422
Object.defineProperty(exports, "__esModule", ({ value: true }));
24232423
const core = __importStar(__nccwpck_require__(7733));
2424-
const http_client_1 = __nccwpck_require__(3569);
2425-
const auth_1 = __nccwpck_require__(6931);
2424+
const http_client_1 = __nccwpck_require__(7794);
2425+
const auth_1 = __nccwpck_require__(4610);
24262426
const crypto = __importStar(__nccwpck_require__(6113));
24272427
const fs = __importStar(__nccwpck_require__(7147));
24282428
const url_1 = __nccwpck_require__(7310);
@@ -2891,7 +2891,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28912891
};
28922892
Object.defineProperty(exports, "__esModule", ({ value: true }));
28932893
const core = __importStar(__nccwpck_require__(7733));
2894-
const http_client_1 = __nccwpck_require__(3569);
2894+
const http_client_1 = __nccwpck_require__(7794);
28952895
const storage_blob_1 = __nccwpck_require__(3929);
28962896
const buffer = __importStar(__nccwpck_require__(4300));
28972897
const fs = __importStar(__nccwpck_require__(7147));
@@ -3148,7 +3148,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
31483148
};
31493149
Object.defineProperty(exports, "__esModule", ({ value: true }));
31503150
const core = __importStar(__nccwpck_require__(7733));
3151-
const http_client_1 = __nccwpck_require__(3569);
3151+
const http_client_1 = __nccwpck_require__(7794);
31523152
const constants_1 = __nccwpck_require__(2114);
31533153
function isSuccessStatusCode(statusCode) {
31543154
if (!statusCode) {
@@ -4112,8 +4112,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
41124112
};
41134113
Object.defineProperty(exports, "__esModule", ({ value: true }));
41144114
exports.OidcClient = void 0;
4115-
const http_client_1 = __nccwpck_require__(3569);
4116-
const auth_1 = __nccwpck_require__(6931);
4115+
const http_client_1 = __nccwpck_require__(7794);
4116+
const auth_1 = __nccwpck_require__(4610);
41174117
const core_1 = __nccwpck_require__(7733);
41184118
class OidcClient {
41194119
static createHttpClient(allowRetry = true, maxRetry = 10) {
@@ -6366,7 +6366,7 @@ exports.SearchState = SearchState;
63666366

63676367
/***/ }),
63686368

6369-
/***/ 6931:
6369+
/***/ 4610:
63706370
/***/ (function(__unused_webpack_module, exports) {
63716371

63726372

@@ -6453,7 +6453,7 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand
64536453

64546454
/***/ }),
64556455

6456-
/***/ 3569:
6456+
/***/ 7794:
64576457
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
64586458

64596459

@@ -6490,7 +6490,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
64906490
exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
64916491
const http = __importStar(__nccwpck_require__(3685));
64926492
const https = __importStar(__nccwpck_require__(5687));
6493-
const pm = __importStar(__nccwpck_require__(2242));
6493+
const pm = __importStar(__nccwpck_require__(1116));
64946494
const tunnel = __importStar(__nccwpck_require__(4249));
64956495
var HttpCodes;
64966496
(function (HttpCodes) {
@@ -7064,7 +7064,7 @@ const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCa
70647064

70657065
/***/ }),
70667066

7067-
/***/ 2242:
7067+
/***/ 1116:
70687068
/***/ ((__unused_webpack_module, exports) => {
70697069

70707070

@@ -7095,6 +7095,10 @@ function checkBypass(reqUrl) {
70957095
if (!reqUrl.hostname) {
70967096
return false;
70977097
}
7098+
const reqHost = reqUrl.hostname;
7099+
if (isLoopbackAddress(reqHost)) {
7100+
return true;
7101+
}
70987102
const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
70997103
if (!noProxy) {
71007104
return false;
@@ -7120,13 +7124,24 @@ function checkBypass(reqUrl) {
71207124
.split(',')
71217125
.map(x => x.trim().toUpperCase())
71227126
.filter(x => x)) {
7123-
if (upperReqHosts.some(x => x === upperNoProxyItem)) {
7127+
if (upperNoProxyItem === '*' ||
7128+
upperReqHosts.some(x => x === upperNoProxyItem ||
7129+
x.endsWith(`.${upperNoProxyItem}`) ||
7130+
(upperNoProxyItem.startsWith('.') &&
7131+
x.endsWith(`${upperNoProxyItem}`)))) {
71247132
return true;
71257133
}
71267134
}
71277135
return false;
71287136
}
71297137
exports.checkBypass = checkBypass;
7138+
function isLoopbackAddress(host) {
7139+
const hostLower = host.toLowerCase();
7140+
return (hostLower === 'localhost' ||
7141+
hostLower.startsWith('127.') ||
7142+
hostLower.startsWith('[::1]') ||
7143+
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
7144+
}
71307145
//# sourceMappingURL=proxy.js.map
71317146

71327147
/***/ }),
@@ -7927,7 +7942,7 @@ const fs = __importStar(__nccwpck_require__(7147));
79277942
const mm = __importStar(__nccwpck_require__(2842));
79287943
const os = __importStar(__nccwpck_require__(2037));
79297944
const path = __importStar(__nccwpck_require__(1017));
7930-
const httpm = __importStar(__nccwpck_require__(3569));
7945+
const httpm = __importStar(__nccwpck_require__(7794));
79317946
const semver = __importStar(__nccwpck_require__(3496));
79327947
const stream = __importStar(__nccwpck_require__(2781));
79337948
const util = __importStar(__nccwpck_require__(3837));

nodejs-wrapper-source/pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)