mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-03 06:05:04 +09:00
update dist
This commit is contained in:
committed by
kellertk
parent
623eede63e
commit
23f8661f4e
+3
@@ -55,6 +55,7 @@ class CredentialsClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
async loadCredentials() {
|
async loadCredentials() {
|
||||||
|
(0, core_1.info)('trying to load credentials');
|
||||||
const client = new client_sts_1.STSClient({
|
const client = new client_sts_1.STSClient({
|
||||||
requestHandler: this.requestHandler ? this.requestHandler : undefined,
|
requestHandler: this.requestHandler ? this.requestHandler : undefined,
|
||||||
});
|
});
|
||||||
@@ -667,7 +668,9 @@ async function run() {
|
|||||||
if (!process.env.GITHUB_ACTIONS || AccessKeyId) {
|
if (!process.env.GITHUB_ACTIONS || AccessKeyId) {
|
||||||
await credentialsClient.validateCredentials(roleCredentials.Credentials?.AccessKeyId);
|
await credentialsClient.validateCredentials(roleCredentials.Credentials?.AccessKeyId);
|
||||||
}
|
}
|
||||||
|
core.info(`validated credentials`);
|
||||||
await (0, helpers_1.exportAccountId)(credentialsClient, maskAccountId);
|
await (0, helpers_1.exportAccountId)(credentialsClient, maskAccountId);
|
||||||
|
core.info(`exported account id`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.info('Proceeding with IAM user credentials');
|
core.info('Proceeding with IAM user credentials');
|
||||||
|
|||||||
Reference in New Issue
Block a user