Skip to content

Commit 98765a2

Browse files
committed
feat: log userid after authentication
1 parent 3a64d61 commit 98765a2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143774,6 +143774,7 @@ function checkCallerIdentity(identity, region, maskAccountId) {
143774143774
if (!resp.AccountId) {
143775143775
throw new Error(`GetCallerIdentity failed, AccountId is null, RequestId: ${resp.RequestId}`);
143776143776
}
143777+
core.info("Authenticated to Tencent Cloud as: " + resp.UserId);
143777143778
if (maskAccountId) {
143778143779
core.setSecret(resp.AccountId);
143779143780
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ async function checkCallerIdentity(identity: AssumeRoleWithWebIdentityResponse,
5252
if (!resp.AccountId) {
5353
throw new Error(`GetCallerIdentity failed, AccountId is null, RequestId: ${resp.RequestId}`);
5454
}
55+
core.info("Authenticated to Tencent Cloud as: " + resp.UserId);
5556
if (maskAccountId) {
5657
core.setSecret(resp.AccountId);
5758
}

0 commit comments

Comments
 (0)