From 3991c2aa73c9bd5e373911ce2bb5e3ce11fdeabe Mon Sep 17 00:00:00 2001 From: Michael Lehmann Date: Thu, 5 Jun 2025 10:53:03 -0700 Subject: [PATCH] add dist --- dist/cleanup/index.js | 12 +++++++++--- dist/index.js | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 5f924c5..d09c340 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -46321,17 +46321,23 @@ function translateEnvVariables() { // Configure the AWS CLI and AWS SDKs using environment variables and set them as secrets. // Setting the credentials as secrets masks them in Github Actions logs function exportCredentials(creds, outputCredentials, outputEnvCredentials) { + if (creds?.AccessKeyId) { + core.setSecret(creds.AccessKeyId); + } + if (creds?.SecretAccessKey) { + core.setSecret(creds.SecretAccessKey); + } + if (creds?.SessionToken) { + core.setSecret(creds.SessionToken); + } if (outputEnvCredentials) { if (creds?.AccessKeyId) { - core.setSecret(creds.AccessKeyId); core.exportVariable('AWS_ACCESS_KEY_ID', creds.AccessKeyId); } if (creds?.SecretAccessKey) { - core.setSecret(creds.SecretAccessKey); core.exportVariable('AWS_SECRET_ACCESS_KEY', creds.SecretAccessKey); } if (creds?.SessionToken) { - core.setSecret(creds.SessionToken); core.exportVariable('AWS_SESSION_TOKEN', creds.SessionToken); } else if (process.env.AWS_SESSION_TOKEN) { diff --git a/dist/index.js b/dist/index.js index ccc734b..a6329d7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -314,17 +314,23 @@ function translateEnvVariables() { // Configure the AWS CLI and AWS SDKs using environment variables and set them as secrets. // Setting the credentials as secrets masks them in Github Actions logs function exportCredentials(creds, outputCredentials, outputEnvCredentials) { + if (creds?.AccessKeyId) { + core.setSecret(creds.AccessKeyId); + } + if (creds?.SecretAccessKey) { + core.setSecret(creds.SecretAccessKey); + } + if (creds?.SessionToken) { + core.setSecret(creds.SessionToken); + } if (outputEnvCredentials) { if (creds?.AccessKeyId) { - core.setSecret(creds.AccessKeyId); core.exportVariable('AWS_ACCESS_KEY_ID', creds.AccessKeyId); } if (creds?.SecretAccessKey) { - core.setSecret(creds.SecretAccessKey); core.exportVariable('AWS_SECRET_ACCESS_KEY', creds.SecretAccessKey); } if (creds?.SessionToken) { - core.setSecret(creds.SessionToken); core.exportVariable('AWS_SESSION_TOKEN', creds.SessionToken); } else if (process.env.AWS_SESSION_TOKEN) {