fix: properly set proxy environment variable
This commit is contained in:
parent
9581336d17
commit
cbea70821e
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ export function translateEnvVariables() {
|
|||
'USE_EXISTING_CREDENTIALS',
|
||||
];
|
||||
// Treat HTTPS_PROXY as HTTP_PROXY. Precedence is HTTPS_PROXY > HTTP_PROXY
|
||||
process.env.HTTP_PROXY = process.env.HTTPS_PROXY || process.env.HTTP_PROXY || undefined;
|
||||
if (process.env.HTTPS_PROXY) process.env.HTTP_PROXY = process.env.HTTPS_PROXY;
|
||||
|
||||
for (const envVar of envVars) {
|
||||
if (process.env[envVar]) {
|
||||
const inputKey = `INPUT_${envVar.replace(/_/g, '-')}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue