From 7a01614d60c2d13eeb12a7c62db70dd568009152 Mon Sep 17 00:00:00 2001 From: Michael Lehmann Date: Wed, 4 Jun 2025 15:10:23 -0700 Subject: [PATCH] more debug --- dist/cleanup/index.js | 2 ++ dist/index.js | 2 ++ src/helpers.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 5f924c5..a07d34d 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -46372,7 +46372,9 @@ 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?'); diff --git a/dist/index.js b/dist/index.js index 73d97e1..e644f06 100644 --- a/dist/index.js +++ b/dist/index.js @@ -366,7 +366,9 @@ 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?'); diff --git a/src/helpers.ts b/src/helpers.ts index 81656d9..2727617 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -96,7 +96,9 @@ 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?');