mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-02 05:55:10 +09:00
fix: properly set proxy environment variable
This commit is contained in:
+2
-1
@@ -30,7 +30,8 @@ export function translateEnvVariables() {
|
|||||||
'USE_EXISTING_CREDENTIALS',
|
'USE_EXISTING_CREDENTIALS',
|
||||||
];
|
];
|
||||||
// Treat HTTPS_PROXY as HTTP_PROXY. Precedence is HTTPS_PROXY > HTTP_PROXY
|
// 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) {
|
for (const envVar of envVars) {
|
||||||
if (process.env[envVar]) {
|
if (process.env[envVar]) {
|
||||||
const inputKey = `INPUT_${envVar.replace(/_/g, '-')}`;
|
const inputKey = `INPUT_${envVar.replace(/_/g, '-')}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user