Skip to content

Commit f71253f

Browse files
Change to @action/http-client version to the one that was used in the most recent build
1 parent b51c97f commit f71253f

File tree

4 files changed

+10
-40
lines changed

4 files changed

+10
-40
lines changed

dist/cache-save/index.js

+1-16
Original file line numberDiff line numberDiff line change
@@ -7195,10 +7195,6 @@ function checkBypass(reqUrl) {
71957195
if (!reqUrl.hostname) {
71967196
return false;
71977197
}
7198-
const reqHost = reqUrl.hostname;
7199-
if (isLoopbackAddress(reqHost)) {
7200-
return true;
7201-
}
72027198
const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
72037199
if (!noProxy) {
72047200
return false;
@@ -7224,24 +7220,13 @@ function checkBypass(reqUrl) {
72247220
.split(',')
72257221
.map(x => x.trim().toUpperCase())
72267222
.filter(x => x)) {
7227-
if (upperNoProxyItem === '*' ||
7228-
upperReqHosts.some(x => x === upperNoProxyItem ||
7229-
x.endsWith(`.${upperNoProxyItem}`) ||
7230-
(upperNoProxyItem.startsWith('.') &&
7231-
x.endsWith(`${upperNoProxyItem}`)))) {
7223+
if (upperReqHosts.some(x => x === upperNoProxyItem)) {
72327224
return true;
72337225
}
72347226
}
72357227
return false;
72367228
}
72377229
exports.checkBypass = checkBypass;
7238-
function isLoopbackAddress(host) {
7239-
const hostLower = host.toLowerCase();
7240-
return (hostLower === 'localhost' ||
7241-
hostLower.startsWith('127.') ||
7242-
hostLower.startsWith('[::1]') ||
7243-
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
7244-
}
72457230
//# sourceMappingURL=proxy.js.map
72467231

72477232
/***/ }),

dist/setup/index.js

+1-16
Original file line numberDiff line numberDiff line change
@@ -8382,10 +8382,6 @@ function checkBypass(reqUrl) {
83828382
if (!reqUrl.hostname) {
83838383
return false;
83848384
}
8385-
const reqHost = reqUrl.hostname;
8386-
if (isLoopbackAddress(reqHost)) {
8387-
return true;
8388-
}
83898385
const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
83908386
if (!noProxy) {
83918387
return false;
@@ -8411,24 +8407,13 @@ function checkBypass(reqUrl) {
84118407
.split(',')
84128408
.map(x => x.trim().toUpperCase())
84138409
.filter(x => x)) {
8414-
if (upperNoProxyItem === '*' ||
8415-
upperReqHosts.some(x => x === upperNoProxyItem ||
8416-
x.endsWith(`.${upperNoProxyItem}`) ||
8417-
(upperNoProxyItem.startsWith('.') &&
8418-
x.endsWith(`${upperNoProxyItem}`)))) {
8410+
if (upperReqHosts.some(x => x === upperNoProxyItem)) {
84198411
return true;
84208412
}
84218413
}
84228414
return false;
84238415
}
84248416
exports.checkBypass = checkBypass;
8425-
function isLoopbackAddress(host) {
8426-
const hostLower = host.toLowerCase();
8427-
return (hostLower === 'localhost' ||
8428-
hostLower.startsWith('127.') ||
8429-
hostLower.startsWith('[::1]') ||
8430-
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
8431-
}
84328417
//# sourceMappingURL=proxy.js.map
84338418

84348419
/***/ }),

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"semver": "^7.1.3"
3535
},
3636
"devDependencies": {
37-
"@actions/http-client": "^2.1.0",
37+
"@actions/http-client": "^2.0.1",
3838
"@types/jest": "^27.0.2",
3939
"@types/node": "^16.11.25",
4040
"@types/semver": "^7.1.0",

0 commit comments

Comments
 (0)