chore: add final tests, add outputs to action.yml

This commit is contained in:
peterwoodworth
2023-07-06 15:19:05 -07:00
parent 7b893ba14b
commit 65c2143642
4 changed files with 77 additions and 21 deletions
Generated Vendored
+2 -2
View File
@@ -486,7 +486,7 @@ async function run() {
let sourceAccountId;
let webIdentityToken;
// If OIDC is being used, generate token
// Else, validate that the SDK can pick up credentials
// Else, export credentials provided as input
if (useGitHubOIDCProvider()) {
try {
webIdentityToken = await (0, helpers_1.retryAndBackoff)(async () => {
@@ -503,7 +503,7 @@ async function run() {
}
// The STS client for calling AssumeRole pulls creds from the environment.
// Plus, in the assume role case, if the AssumeRole call fails, we want
// the source credentials and account ID to already be masked as secrets
// the source credentials to already be masked as secrets
// in any error messages.
(0, helpers_1.exportCredentials)({ AccessKeyId, SecretAccessKey, SessionToken });
}