fix to make action still run

This commit is contained in:
Michael Lehmann authored and kellertk committed 2026-01-27 15:43:50 -08:00
1 parent a26a7d8191
commit e378c2d267
6 files changed
+7 -15

No files matched your search

-2
View File
@@ -96,9 +96,7 @@ export function exportRegion(region: string, outputEnvCredentials?: boolean) {
// Obtains account ID from STS Client and sets it as output
export async function exportAccountId(credentialsClient: CredentialsClient, maskAccountId?: boolean) {
const client = credentialsClient.stsClient;
core.info('trying to get account id');
const identity = await client.send(new 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?');