Skip to content

Commit ceb20b2

Browse files
Bump @actions/http-client from 2.2.1 to 2.2.3 (#1020)
* 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] <support@github.com> * fix for licensed and check-dist checks failures --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
1 parent 0dc2d2c commit ceb20b2

File tree

5 files changed

+39
-12
lines changed

5 files changed

+39
-12
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
@@ -10554,7 +10554,7 @@ class HttpClient {
1055410554
}
1055510555
const usingSsl = parsedUrl.protocol === 'https:';
1055610556
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
10557-
token: `${proxyUrl.username}:${proxyUrl.password}`
10557+
token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}`
1055810558
})));
1055910559
this._proxyAgentDispatcher = proxyAgent;
1056010560
if (usingSsl && this._ignoreSslError) {
@@ -10668,11 +10668,11 @@ function getProxyUrl(reqUrl) {
1066810668
})();
1066910669
if (proxyVar) {
1067010670
try {
10671-
return new URL(proxyVar);
10671+
return new DecodedURL(proxyVar);
1067210672
}
1067310673
catch (_a) {
1067410674
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
10675-
return new URL(`http://${proxyVar}`);
10675+
return new DecodedURL(`http://${proxyVar}`);
1067610676
}
1067710677
}
1067810678
else {
@@ -10731,6 +10731,19 @@ function isLoopbackAddress(host) {
1073110731
hostLower.startsWith('[::1]') ||
1073210732
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
1073310733
}
10734+
class DecodedURL extends URL {
10735+
constructor(url, base) {
10736+
super(url, base);
10737+
this._decodedUsername = decodeURIComponent(super.username);
10738+
this._decodedPassword = decodeURIComponent(super.password);
10739+
}
10740+
get username() {
10741+
return this._decodedUsername;
10742+
}
10743+
get password() {
10744+
return this._decodedPassword;
10745+
}
10746+
}
1073410747
//# sourceMappingURL=proxy.js.map
1073510748

1073610749
/***/ }),

package-lock.json

+5-4
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
@@ -29,7 +29,7 @@
2929
"@actions/core": "^1.10.0",
3030
"@actions/exec": "^1.1.0",
3131
"@actions/glob": "^0.4.0",
32-
"@actions/http-client": "^2.2.1",
32+
"@actions/http-client": "^2.2.3",
3333
"@actions/io": "^1.0.2",
3434
"@actions/tool-cache": "^2.0.1",
3535
"@iarna/toml": "^3.0.0",

0 commit comments

Comments
 (0)