mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-05 06:25:08 +09:00
fix eslint issue (#928)
This commit is contained in:
+11
-17
@@ -151,22 +151,16 @@ export async function assumeRole(params: assumeRoleParams) {
|
|||||||
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) {
|
||||||
}
|
return assumeRoleWithWebIdentityTokenFile(
|
||||||
|
commonAssumeRoleParams,
|
||||||
case !!webIdentityTokenFile: {
|
stsClient,
|
||||||
return assumeRoleWithWebIdentityTokenFile(
|
webIdentityTokenFile,
|
||||||
commonAssumeRoleParams,
|
GITHUB_WORKSPACE
|
||||||
stsClient,
|
);
|
||||||
webIdentityTokenFile!,
|
} else {
|
||||||
GITHUB_WORKSPACE
|
return assumeRoleWithCredentials(commonAssumeRoleParams, stsClient);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
default: {
|
|
||||||
return assumeRoleWithCredentials(commonAssumeRoleParams, stsClient);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user