mirror of
https://github.com/actions/setup-python.git
synced 2025-01-30 10:31:53 +00:00
fix for licensed and check-dist checks failures
This commit is contained in:
parent
78c7bf55f7
commit
016dee0ffa
3 changed files with 33 additions and 7 deletions
2
.licenses/npm/@actions/http-client.dep.yml
generated
2
.licenses/npm/@actions/http-client.dep.yml
generated
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: "@actions/http-client"
|
name: "@actions/http-client"
|
||||||
version: 2.2.1
|
version: 2.2.3
|
||||||
type: npm
|
type: npm
|
||||||
summary: Actions Http Client
|
summary: Actions Http Client
|
||||||
homepage: https://github.com/actions/toolkit/tree/main/packages/http-client
|
homepage: https://github.com/actions/toolkit/tree/main/packages/http-client
|
||||||
|
|
19
dist/cache-save/index.js
vendored
19
dist/cache-save/index.js
vendored
|
@ -9362,7 +9362,7 @@ class HttpClient {
|
||||||
}
|
}
|
||||||
const usingSsl = parsedUrl.protocol === 'https:';
|
const usingSsl = parsedUrl.protocol === 'https:';
|
||||||
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
|
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;
|
this._proxyAgentDispatcher = proxyAgent;
|
||||||
if (usingSsl && this._ignoreSslError) {
|
if (usingSsl && this._ignoreSslError) {
|
||||||
|
@ -9476,11 +9476,11 @@ function getProxyUrl(reqUrl) {
|
||||||
})();
|
})();
|
||||||
if (proxyVar) {
|
if (proxyVar) {
|
||||||
try {
|
try {
|
||||||
return new URL(proxyVar);
|
return new DecodedURL(proxyVar);
|
||||||
}
|
}
|
||||||
catch (_a) {
|
catch (_a) {
|
||||||
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
||||||
return new URL(`http://${proxyVar}`);
|
return new DecodedURL(`http://${proxyVar}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -9539,6 +9539,19 @@ function isLoopbackAddress(host) {
|
||||||
hostLower.startsWith('[::1]') ||
|
hostLower.startsWith('[::1]') ||
|
||||||
hostLower.startsWith('[0:0:0:0:0:0:0: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
|
//# sourceMappingURL=proxy.js.map
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
19
dist/setup/index.js
vendored
19
dist/setup/index.js
vendored
|
@ -10554,7 +10554,7 @@ class HttpClient {
|
||||||
}
|
}
|
||||||
const usingSsl = parsedUrl.protocol === 'https:';
|
const usingSsl = parsedUrl.protocol === 'https:';
|
||||||
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
|
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;
|
this._proxyAgentDispatcher = proxyAgent;
|
||||||
if (usingSsl && this._ignoreSslError) {
|
if (usingSsl && this._ignoreSslError) {
|
||||||
|
@ -10668,11 +10668,11 @@ function getProxyUrl(reqUrl) {
|
||||||
})();
|
})();
|
||||||
if (proxyVar) {
|
if (proxyVar) {
|
||||||
try {
|
try {
|
||||||
return new URL(proxyVar);
|
return new DecodedURL(proxyVar);
|
||||||
}
|
}
|
||||||
catch (_a) {
|
catch (_a) {
|
||||||
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
||||||
return new URL(`http://${proxyVar}`);
|
return new DecodedURL(`http://${proxyVar}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -10731,6 +10731,19 @@ function isLoopbackAddress(host) {
|
||||||
hostLower.startsWith('[::1]') ||
|
hostLower.startsWith('[::1]') ||
|
||||||
hostLower.startsWith('[0:0:0:0:0:0:0: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
|
//# sourceMappingURL=proxy.js.map
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
Loading…
Add table
Reference in a new issue