mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-11-29 19:34:21 +01:00
chore: add final tests, add outputs to action.yml
This commit is contained in:
4 files changed
+77
-21
No files matched your search
+2
-2
@@ -90,7 +90,7 @@ export async function run() {
|
||||
let webIdentityToken: string;
|
||||
|
||||
// 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 retryAndBackoff(
|
||||
@@ -109,7 +109,7 @@ export 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.
|
||||
exportCredentials({ AccessKeyId, SecretAccessKey, SessionToken });
|
||||
} else if (!webIdentityTokenFile && !roleChaining) {
|
||||
|
||||
Reference in new issue
Block a user