mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-11-30 11:44:23 +01:00
chore: Update dist
This commit is contained in:
1 parent
e5170cf58c
commit
90cd6b2dfa
1 file changed
+8
-10
+8
-10
@@ -202,16 +202,14 @@ async function assumeRole(params) {
|
|||||||
// Instantiate STS client
|
// Instantiate STS client
|
||||||
const stsClient = credentialsClient.stsClient;
|
const stsClient = credentialsClient.stsClient;
|
||||||
// Assume role using one of three methods
|
// Assume role using one of three methods
|
||||||
switch (true) {
|
if (!!webIdentityToken) {
|
||||||
case !!webIdentityToken: {
|
return assumeRoleWithOIDC(commonAssumeRoleParams, stsClient, webIdentityToken);
|
||||||
return assumeRoleWithOIDC(commonAssumeRoleParams, stsClient, webIdentityToken);
|
}
|
||||||
}
|
else if (!!webIdentityTokenFile) {
|
||||||
case !!webIdentityTokenFile: {
|
return assumeRoleWithWebIdentityTokenFile(commonAssumeRoleParams, stsClient, webIdentityTokenFile, GITHUB_WORKSPACE);
|
||||||
return assumeRoleWithWebIdentityTokenFile(commonAssumeRoleParams, stsClient, webIdentityTokenFile, GITHUB_WORKSPACE);
|
}
|
||||||
}
|
else {
|
||||||
default: {
|
return assumeRoleWithCredentials(commonAssumeRoleParams, stsClient);
|
||||||
return assumeRoleWithCredentials(commonAssumeRoleParams, stsClient);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.assumeRole = assumeRole;
|
exports.assumeRole = assumeRole;
|
||||||
|
|||||||
Reference in new issue
Block a user