mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-12-01 04:04:24 +01:00
chore: Update dist
This commit is contained in:
1 parent
57b83659c2
commit
e92ebccf39
1 file changed
+7
-2
+7
-2
@@ -74025,7 +74025,10 @@ function translateEnvVariables() {
|
|||||||
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, "-")}`;
|
||||||
process.env[inputKey] = process.env[inputKey] || process.env[envVar];
|
if (!process.env[inputKey]) {
|
||||||
|
info(`Translating ${envVar} to input ${envVar.replace(/_/g, "-").toLowerCase()}`);
|
||||||
|
process.env[inputKey] = process.env[envVar];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -75935,7 +75938,9 @@ var REGION_REGEX = /^[a-z0-9-]+$/g;
|
|||||||
var ROLE_SESSION_NAME_REGEX = /^[\w+=,.@-]*$/;
|
var ROLE_SESSION_NAME_REGEX = /^[\w+=,.@-]*$/;
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
translateEnvVariables();
|
if (getBooleanInput("translate-env-variables", { required: false, default: true })) {
|
||||||
|
translateEnvVariables();
|
||||||
|
}
|
||||||
const AccessKeyId = getInput("aws-access-key-id", { required: false });
|
const AccessKeyId = getInput("aws-access-key-id", { required: false });
|
||||||
const SecretAccessKey = getInput("aws-secret-access-key", { required: false });
|
const SecretAccessKey = getInput("aws-secret-access-key", { required: false });
|
||||||
const sessionTokenInput = getInput("aws-session-token", { required: false });
|
const sessionTokenInput = getInput("aws-session-token", { required: false });
|
||||||
|
|||||||
Reference in new issue
Block a user