mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-06-08 12:17:07 +00:00
fix: properly set proxy environment variable
This commit is contained in:
parent
5858805023
commit
e19fa45bbe
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