Skip to content

Commit cbea708

Browse files
committed
fix: properly set proxy environment variable
1 parent 9581336 commit cbea708

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export function translateEnvVariables() {
3030
'USE_EXISTING_CREDENTIALS',
3131
];
3232
// Treat HTTPS_PROXY as HTTP_PROXY. Precedence is HTTPS_PROXY > HTTP_PROXY
33-
process.env.HTTP_PROXY = process.env.HTTPS_PROXY || process.env.HTTP_PROXY || undefined;
33+
if (process.env.HTTPS_PROXY) process.env.HTTP_PROXY = process.env.HTTPS_PROXY;
34+
3435
for (const envVar of envVars) {
3536
if (process.env[envVar]) {
3637
const inputKey = `INPUT_${envVar.replace(/_/g, '-')}`;

0 commit comments

Comments
 (0)