mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-04 06:15:07 +09:00
feat: role-chaining
This commit is contained in:
+1
-1
@@ -17616,7 +17616,7 @@ function exportRegion(region) {
|
||||
exports.exportRegion = exportRegion;
|
||||
// Obtains account ID from STS Client and sets it as output
|
||||
async function exportAccountId(credentialsClient, maskAccountId) {
|
||||
const client = credentialsClient.getStsClient();
|
||||
const client = credentialsClient.stsClient;
|
||||
const identity = await client.send(new client_sts_1.GetCallerIdentityCommand({}));
|
||||
const accountId = identity.Account;
|
||||
if (!accountId) {
|
||||
|
||||
+3
-3
@@ -5,10 +5,10 @@ export interface CredentialsClientProps {
|
||||
}
|
||||
export declare class CredentialsClient {
|
||||
region?: string;
|
||||
private stsClient?;
|
||||
private _stsClient?;
|
||||
private readonly requestHandler?;
|
||||
constructor(props: CredentialsClientProps);
|
||||
getStsClient(): STSClient;
|
||||
validateCredentials(expectedAccessKeyId?: string): Promise<void>;
|
||||
get stsClient(): STSClient;
|
||||
validateCredentials(expectedAccessKeyId?: string, roleChaining?: boolean): Promise<void>;
|
||||
private loadCredentials;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user