Skip to content

Commit 4849e73

Browse files
Bump @actions/http-client from 2.2.1 to 2.2.3 (#592)
* Bump @actions/http-client from 2.2.1 to 2.2.3 Bumps [@actions/http-client](https://github.com/actions/toolkit/tree/HEAD/packages/http-client) from 2.2.1 to 2.2.3. - [Changelog](https://github.com/actions/toolkit/blob/main/packages/http-client/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/http-client) --- updated-dependencies: - dependency-name: "@actions/http-client" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * fix for the check failures --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <[email protected]>
1 parent 3e76c4d commit 4849e73

File tree

5 files changed

+40
-13
lines changed

5 files changed

+40
-13
lines changed

.licenses/npm/@actions/http-client.dep.yml

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

dist/cache-save/index.js

+16-3
Original file line numberDiff line numberDiff line change
@@ -9362,7 +9362,7 @@ class HttpClient {
93629362
}
93639363
const usingSsl = parsedUrl.protocol === 'https:';
93649364
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
9365-
token: `${proxyUrl.username}:${proxyUrl.password}`
9365+
token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}`
93669366
})));
93679367
this._proxyAgentDispatcher = proxyAgent;
93689368
if (usingSsl && this._ignoreSslError) {
@@ -9476,11 +9476,11 @@ function getProxyUrl(reqUrl) {
94769476
})();
94779477
if (proxyVar) {
94789478
try {
9479-
return new URL(proxyVar);
9479+
return new DecodedURL(proxyVar);
94809480
}
94819481
catch (_a) {
94829482
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
9483-
return new URL(`http://${proxyVar}`);
9483+
return new DecodedURL(`http://${proxyVar}`);
94849484
}
94859485
}
94869486
else {
@@ -9539,6 +9539,19 @@ function isLoopbackAddress(host) {
95399539
hostLower.startsWith('[::1]') ||
95409540
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
95419541
}
9542+
class DecodedURL extends URL {
9543+
constructor(url, base) {
9544+
super(url, base);
9545+
this._decodedUsername = decodeURIComponent(super.username);
9546+
this._decodedPassword = decodeURIComponent(super.password);
9547+
}
9548+
get username() {
9549+
return this._decodedUsername;
9550+
}
9551+
get password() {
9552+
return this._decodedPassword;
9553+
}
9554+
}
95429555
//# sourceMappingURL=proxy.js.map
95439556

95449557
/***/ }),

dist/setup/index.js

+16-3
Original file line numberDiff line numberDiff line change
@@ -10807,7 +10807,7 @@ class HttpClient {
1080710807
}
1080810808
const usingSsl = parsedUrl.protocol === 'https:';
1080910809
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
10810-
token: `${proxyUrl.username}:${proxyUrl.password}`
10810+
token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}`
1081110811
})));
1081210812
this._proxyAgentDispatcher = proxyAgent;
1081310813
if (usingSsl && this._ignoreSslError) {
@@ -10921,11 +10921,11 @@ function getProxyUrl(reqUrl) {
1092110921
})();
1092210922
if (proxyVar) {
1092310923
try {
10924-
return new URL(proxyVar);
10924+
return new DecodedURL(proxyVar);
1092510925
}
1092610926
catch (_a) {
1092710927
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
10928-
return new URL(`http://${proxyVar}`);
10928+
return new DecodedURL(`http://${proxyVar}`);
1092910929
}
1093010930
}
1093110931
else {
@@ -10984,6 +10984,19 @@ function isLoopbackAddress(host) {
1098410984
hostLower.startsWith('[::1]') ||
1098510985
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
1098610986
}
10987+
class DecodedURL extends URL {
10988+
constructor(url, base) {
10989+
super(url, base);
10990+
this._decodedUsername = decodeURIComponent(super.username);
10991+
this._decodedPassword = decodeURIComponent(super.password);
10992+
}
10993+
get username() {
10994+
return this._decodedUsername;
10995+
}
10996+
get password() {
10997+
return this._decodedPassword;
10998+
}
10999+
}
1098711000
//# sourceMappingURL=proxy.js.map
1098811001

1098911002
/***/ }),

package-lock.json

+6-5
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
@@ -31,7 +31,7 @@
3131
"@actions/exec": "^1.1.1",
3232
"@actions/github": "^6.0.0",
3333
"@actions/glob": "^0.4.0",
34-
"@actions/http-client": "^2.2.1",
34+
"@actions/http-client": "^2.2.3",
3535
"@actions/io": "^1.0.2",
3636
"fast-xml-parser": "^4.4.1",
3737
"json5": "^2.2.3",

0 commit comments

Comments
 (0)