diff --git a/dist/index.js b/dist/index.js index eb49a68093e..1f68c0df391 100644 --- a/dist/index.js +++ b/dist/index.js @@ -524,8 +524,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OidcClient = void 0; -const http_client_1 = __nccwpck_require__(6372); -const auth_1 = __nccwpck_require__(8603); +const http_client_1 = __nccwpck_require__(6634); +const auth_1 = __nccwpck_require__(2177); const core_1 = __nccwpck_require__(9093); class OidcClient { static createHttpClient(allowRetry = true, maxRetry = 10) { @@ -1729,7 +1729,7 @@ class ExecState extends events.EventEmitter { /***/ }), -/***/ 8603: +/***/ 2177: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -1817,7 +1817,7 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand /***/ }), -/***/ 6372: +/***/ 6634: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1859,7 +1859,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; const http = __importStar(__nccwpck_require__(3685)); const https = __importStar(__nccwpck_require__(5687)); -const pm = __importStar(__nccwpck_require__(2067)); +const pm = __importStar(__nccwpck_require__(4318)); const tunnel = __importStar(__nccwpck_require__(4225)); const undici_1 = __nccwpck_require__(7181); var HttpCodes; @@ -2384,7 +2384,7 @@ class HttpClient { } const usingSsl = parsedUrl.protocol === 'https:'; proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && { - token: `${proxyUrl.username}:${proxyUrl.password}` + token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}` }))); this._proxyAgentDispatcher = proxyAgent; if (usingSsl && this._ignoreSslError) { @@ -2476,7 +2476,7 @@ const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCa /***/ }), -/***/ 2067: +/***/ 4318: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -2498,11 +2498,11 @@ function getProxyUrl(reqUrl) { })(); if (proxyVar) { try { - return new URL(proxyVar); + return new DecodedURL(proxyVar); } catch (_a) { if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) - return new URL(`http://${proxyVar}`); + return new DecodedURL(`http://${proxyVar}`); } } else { @@ -2561,6 +2561,19 @@ function isLoopbackAddress(host) { hostLower.startsWith('[::1]') || hostLower.startsWith('[0:0:0:0:0:0:0:1]')); } +class DecodedURL extends URL { + constructor(url, base) { + super(url, base); + this._decodedUsername = decodeURIComponent(super.username); + this._decodedPassword = decodeURIComponent(super.password); + } + get username() { + return this._decodedUsername; + } + get password() { + return this._decodedPassword; + } +} //# sourceMappingURL=proxy.js.map /***/ }), diff --git a/package.json b/package.json index 8ef8553b54f..55dd28c0022 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-action", - "version": "40.2.6", + "version": "40.2.7", "private": true, "description": "GitHub Action to run Renovate self-hosted.", "homepage": "https://github.com/renovatebot/github-action#readme",