chore: Update dist

This commit is contained in:
GitHub Actions
2023-11-22 19:31:12 +00:00
parent e5170cf58c
commit 90cd6b2dfa
Generated Vendored
+3 -5
View File
@@ -202,17 +202,15 @@ 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);
} }
case !!webIdentityTokenFile: { else if (!!webIdentityTokenFile) {
return assumeRoleWithWebIdentityTokenFile(commonAssumeRoleParams, stsClient, webIdentityTokenFile, GITHUB_WORKSPACE); return assumeRoleWithWebIdentityTokenFile(commonAssumeRoleParams, stsClient, webIdentityTokenFile, GITHUB_WORKSPACE);
} }
default: { else {
return assumeRoleWithCredentials(commonAssumeRoleParams, stsClient); return assumeRoleWithCredentials(commonAssumeRoleParams, stsClient);
} }
}
} }
exports.assumeRole = assumeRole; exports.assumeRole = assumeRole;
//# sourceMappingURL=assumeRole.js.map //# sourceMappingURL=assumeRole.js.map