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) {
34733473 })();
34743474 if (proxyVar) {
34753475 try {
3476- return new URL (proxyVar);
3476+ return new DecodedURL (proxyVar);
34773477 }
34783478 catch (_a) {
34793479 if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
3480- return new URL (`http://${proxyVar}`);
3480+ return new DecodedURL (`http://${proxyVar}`);
34813481 }
34823482 }
34833483 else {
@@ -3536,6 +3536,19 @@ function isLoopbackAddress(host) {
35363536 hostLower.startsWith('[::1]') ||
35373537 hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
35383538}
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+ }
35393552//# sourceMappingURL=proxy.js.map
35403553
35413554/***/ }),
Original file line number Diff line number Diff line change 2323 "license" : " MIT" ,
2424 "dependencies" : {
2525 "@actions/core" : " ^1.10.1" ,
26- "@actions/http-client" : " ^2.2.1 " ,
26+ "@actions/http-client" : " ^2.2.2 " ,
2727 "@actions/tool-cache" : " ^2.0.1" ,
2828 "semver" : " ^7.6.3"
2929 },
You can’t perform that action at this time.
0 commit comments