mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-03-12 18:07:10 -04:00
replace shortened URL with full URL (#905)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@@ -145,7 +145,7 @@ async function assumeRoleWithCredentials(params, client) {
|
||||
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://s12d.com/gha-oidc-aws for more information.');
|
||||
' 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 client_sts_1.AssumeRoleCommand({ ...params }));
|
||||
|
||||
@@ -59,7 +59,7 @@ async function assumeRoleWithCredentials(params: AssumeRoleCommandInput, client:
|
||||
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://s12d.com/gha-oidc-aws for more information.'
|
||||
' See https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services for more information.'
|
||||
);
|
||||
}
|
||||
try {
|
||||
|
||||
@@ -879,7 +879,7 @@ describe('Configure AWS Credentials', () => {
|
||||
|
||||
expect(core.warning).toHaveBeenCalledWith(
|
||||
'To avoid using long-term AWS credentials, please update your workflows to authenticate using OpenID Connect.' +
|
||||
' See https://s12d.com/gha-oidc-aws for more information.'
|
||||
' See https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services for more information.'
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user