mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-12-01 12:24:23 +01:00
chore: Update dist
This commit is contained in:
1 parent
fd1fab4c46
commit
20eb4eea7a
10 files changed
+568
-400
No files matched your search
+2
-2
@@ -17,7 +17,7 @@ const fromWebToken_1 = __webpack_require__(4453);
|
||||
const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
||||
const ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
||||
const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
||||
const fromTokenFile = (init = {}) => async () => {
|
||||
const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
|
||||
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
||||
const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
|
||||
const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
|
||||
@@ -33,7 +33,7 @@ const fromTokenFile = (init = {}) => async () => {
|
||||
(0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
|
||||
roleArn,
|
||||
roleSessionName,
|
||||
})();
|
||||
})(awsIdentityProperties);
|
||||
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
|
||||
(0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user