File tree Expand file tree Collapse file tree 3 files changed +23
-10
lines changed Expand file tree Collapse file tree 3 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -3473,11 +3473,11 @@ function getProxyUrl(reqUrl) {
3473
3473
})();
3474
3474
if (proxyVar) {
3475
3475
try {
3476
- return new URL (proxyVar);
3476
+ return new DecodedURL (proxyVar);
3477
3477
}
3478
3478
catch (_a) {
3479
3479
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
3480
- return new URL (`http://${proxyVar}`);
3480
+ return new DecodedURL (`http://${proxyVar}`);
3481
3481
}
3482
3482
}
3483
3483
else {
@@ -3536,6 +3536,19 @@ function isLoopbackAddress(host) {
3536
3536
hostLower.startsWith('[::1]') ||
3537
3537
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
3538
3538
}
3539
+ class DecodedURL extends URL {
3540
+ constructor(url, base) {
3541
+ super(url, base);
3542
+ this._decodedUsername = decodeURIComponent(super.username);
3543
+ this._decodedPassword = decodeURIComponent(super.password);
3544
+ }
3545
+ get username() {
3546
+ return this._decodedUsername;
3547
+ }
3548
+ get password() {
3549
+ return this._decodedPassword;
3550
+ }
3551
+ }
3539
3552
//# sourceMappingURL=proxy.js.map
3540
3553
3541
3554
/***/ }),
Original file line number Diff line number Diff line change 23
23
"license" : " MIT" ,
24
24
"dependencies" : {
25
25
"@actions/core" : " ^1.10.1" ,
26
- "@actions/http-client" : " ^2.2.1 " ,
26
+ "@actions/http-client" : " ^2.2.2 " ,
27
27
"@actions/tool-cache" : " ^2.0.1" ,
28
28
"semver" : " ^7.6.3"
29
29
},
You can’t perform that action at this time.
0 commit comments