From 30d0c4e63214566fc8e8343e5c6f7974741870ab Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 11 May 2021 19:01:25 +0000 Subject: [PATCH] chore: Update dist --- dist/index.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 130200b..9a32356 100644 --- a/dist/index.js +++ b/dist/index.js @@ -222,6 +222,12 @@ async function assumeRole(params) { const roleSessionTags = roleSkipSessionTagging ? undefined : tagArray; + if(roleSessionTags == undefined){ + core.debug("Role session tagging has been skipped.") + } else { + core.debug(roleSessionTags.length + " role session tags are being used.") + } + const assumeRoleRequest = { RoleArn: roleArn, RoleSessionName: roleSessionName, @@ -368,8 +374,9 @@ async function run() { const roleExternalId = core.getInput('role-external-id', { required: false }); const roleDurationSeconds = core.getInput('role-duration-seconds', {required: false}) || MAX_ACTION_RUNTIME; const roleSessionName = core.getInput('role-session-name', { required: false }) || ROLE_SESSION_NAME; - const roleSkipSessionTagging = core.getInput('role-skip-session-tagging', { required: false }); - + const roleSkipSessionTaggingInput = core.getInput('role-skip-session-tagging', { required: false })|| 'false'; + const roleSkipSessionTagging = roleSkipSessionTaggingInput.toLowerCase() === 'true'; + if (!region.match(REGION_REGEX)) { throw new Error(`Region is not valid: ${region}`); }