mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-03 06:05:04 +09: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:
+1
-1
@@ -145,7 +145,7 @@ async function assumeRoleWithCredentials(params, client) {
|
|||||||
core.info('Assuming role with user credentials');
|
core.info('Assuming role with user credentials');
|
||||||
if (!process.env['AWS_SESSION_TOKEN']) {
|
if (!process.env['AWS_SESSION_TOKEN']) {
|
||||||
core.warning('To avoid using long-term AWS credentials, please update your workflows to authenticate using OpenID Connect.' +
|
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 {
|
try {
|
||||||
const creds = await client.send(new client_sts_1.AssumeRoleCommand({ ...params }));
|
const creds = await client.send(new client_sts_1.AssumeRoleCommand({ ...params }));
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ async function assumeRoleWithCredentials(params: AssumeRoleCommandInput, client:
|
|||||||
if (!process.env['AWS_SESSION_TOKEN']) {
|
if (!process.env['AWS_SESSION_TOKEN']) {
|
||||||
core.warning(
|
core.warning(
|
||||||
'To avoid using long-term AWS credentials, please update your workflows to authenticate using OpenID Connect.' +
|
'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 {
|
try {
|
||||||
|
|||||||
+1
-1
@@ -879,7 +879,7 @@ describe('Configure AWS Credentials', () => {
|
|||||||
|
|
||||||
expect(core.warning).toHaveBeenCalledWith(
|
expect(core.warning).toHaveBeenCalledWith(
|
||||||
'To avoid using long-term AWS credentials, please update your workflows to authenticate using OpenID Connect.' +
|
'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