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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cache-save/index.js

Lines changed: 16 additions & 3 deletions
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

Lines changed: 16 additions & 3 deletions
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

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy