diff --git a/dist/restore/index.js b/dist/restore/index.js index f540337..6cfaca0 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -2587,7 +2587,7 @@ function getInputS3ClientConfig() { } } : { credentials: credential_provider_web_identity_1.fromTokenFile({ - roleAssumerWithWebIdentity: client_sts_1.getDefaultRoleAssumerWithWebIdentity, + roleAssumerWithWebIdentity: client_sts_1.getDefaultRoleAssumerWithWebIdentity(), }) }; const s3config = Object.assign(Object.assign({}, credentials), { region: core.getInput(constants_1.Inputs.AWSRegion), endpoint: core.getInput(constants_1.Inputs.AWSEndpoint), bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint), forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle) }); diff --git a/dist/save/index.js b/dist/save/index.js index 3b30d37..0fa9fac 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -2587,7 +2587,7 @@ function getInputS3ClientConfig() { } } : { credentials: credential_provider_web_identity_1.fromTokenFile({ - roleAssumerWithWebIdentity: client_sts_1.getDefaultRoleAssumerWithWebIdentity, + roleAssumerWithWebIdentity: client_sts_1.getDefaultRoleAssumerWithWebIdentity(), }) }; const s3config = Object.assign(Object.assign({}, credentials), { region: core.getInput(constants_1.Inputs.AWSRegion), endpoint: core.getInput(constants_1.Inputs.AWSEndpoint), bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint), forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle) }); diff --git a/package.json b/package.json index fddfe52..a69209a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "actions-s3-caching", - "version": "1.0.3", + "version": "1.0.5", "private": true, "description": "Cache dependencies and build outputs", "main": "dist/restore/index.js", diff --git a/src/utils/actionUtils.ts b/src/utils/actionUtils.ts index 181adf3..d41247b 100644 --- a/src/utils/actionUtils.ts +++ b/src/utils/actionUtils.ts @@ -90,7 +90,7 @@ export function getInputS3ClientConfig(): S3ClientConfig | undefined { } } : { credentials: fromTokenFile({ - roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity, + roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(), }) }