chore: remove warning (#926)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Tim Finnigan
2023-12-05 16:23:55 -08:00
committed by GitHub
parent 0d2b0aeb3e
commit 6129f329e6
4 changed files with 207 additions and 246 deletions
-6
View File
@@ -56,12 +56,6 @@ async function assumeRoleWithWebIdentityTokenFile(
async function assumeRoleWithCredentials(params: AssumeRoleCommandInput, client: STSClient) {
core.info('Assuming role with user credentials');
if (!process.env['AWS_SESSION_TOKEN']) {
core.warning(
'To avoid using long-term AWS credentials, please update your workflows to authenticate using OpenID Connect.' +
' See https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services for more information.'
);
}
try {
const creds = await client.send(new AssumeRoleCommand({ ...params }));
return creds;