Skip to content

Commit d4e4b6b

Browse files
Bump @actions/http-client from 2.2.1 to 2.2.3 (actions#728)
* 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 check-dist and license 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 28b532b commit d4e4b6b

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/cleanup/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
/***/ }),

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
@@ -30,7 +30,7 @@
3030
"@actions/core": "^1.10.0",
3131
"@actions/exec": "^1.0.4",
3232
"@actions/glob": "^0.4.0",
33-
"@actions/http-client": "^2.2.1",
33+
"@actions/http-client": "^2.2.3",
3434
"@actions/io": "^1.0.2",
3535
"@actions/tool-cache": "^2.0.1",
3636
"semver": "^7.6.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