Skip to content

Commit d4e4b6b

Browse files
Bump @actions/http-client from 2.2.1 to 2.2.3 (#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] <[email protected]> * fix for check-dist and license failures --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <[email protected]>
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

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
@@ -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)