mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-05 06:25:08 +09:00
Update dist
This commit is contained in:
Vendored
+4
@@ -110,6 +110,7 @@ async function run() {
|
|||||||
const secretAccessKey = core.getInput('aws-secret-access-key', { required: true });
|
const secretAccessKey = core.getInput('aws-secret-access-key', { required: true });
|
||||||
const region = core.getInput('aws-region', { required: true });
|
const region = core.getInput('aws-region', { required: true });
|
||||||
const sessionToken = core.getInput('aws-session-token', { required: false });
|
const sessionToken = core.getInput('aws-session-token', { required: false });
|
||||||
|
const maskAccountId = core.getInput('mask-aws-account-id', { required: false });
|
||||||
|
|
||||||
// Configure the AWS CLI and AWS SDKs using environment variables
|
// Configure the AWS CLI and AWS SDKs using environment variables
|
||||||
|
|
||||||
@@ -137,6 +138,9 @@ async function run() {
|
|||||||
const identity = await sts.getCallerIdentity().promise();
|
const identity = await sts.getCallerIdentity().promise();
|
||||||
const accountId = identity.Account;
|
const accountId = identity.Account;
|
||||||
core.setOutput('aws-account-id', accountId);
|
core.setOutput('aws-account-id', accountId);
|
||||||
|
if (!maskAccountId || maskAccountId.toLowerCase() == 'true') {
|
||||||
|
core.setSecret(accountId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user