mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-11-30 19:54:26 +01:00
fix to make action still run
This commit is contained in:
1 parent
7a01614d60
commit
aeb75711d0
6 files changed
+7
-15
No files matched your search
-2
@@ -46372,9 +46372,7 @@ function exportRegion(region, outputEnvCredentials) {
|
||||
// Obtains account ID from STS Client and sets it as output
|
||||
async function exportAccountId(credentialsClient, maskAccountId) {
|
||||
const client = credentialsClient.stsClient;
|
||||
core.info('trying to get account id');
|
||||
const identity = await client.send(new client_sts_1.GetCallerIdentityCommand({}));
|
||||
core.info('got account id');
|
||||
const accountId = identity.Account;
|
||||
if (!accountId) {
|
||||
throw new Error('Could not get Account ID from STS. Did you set credentials?');
|
||||
|
||||
Reference in new issue
Block a user