diff --git a/README.md b/README.md index be3a782..eca459f 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ jobs: insecure: false # optional, use http instead of https. default false accessKey: "Q3AM3UQ867SPQQA43P2F" # required secretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" # required + sessionToken: "AQoDYXdzEJraDcqRtz123" # optional bucket: actions-cache # required use-fallback: true # optional, use github actions cache fallback, default true diff --git a/action.yml b/action.yml index bc26d22..2d70a64 100644 --- a/action.yml +++ b/action.yml @@ -18,6 +18,9 @@ inputs: secretKey: description: s3 / minio secretKey required: true + sessionToken: + description: s3 session token - required when using role + required: false bucket: description: s3 / minio bucket required: true diff --git a/dist/restore/index.js b/dist/restore/index.js index bc3765f..1c56638 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -6589,6 +6589,7 @@ function newMinio() { useSSL: !getInputAsBoolean("insecure"), accessKey: core.getInput("accessKey"), secretKey: core.getInput("secretKey"), + sessionToken: core.getInput("sessionToken"), }); } exports.newMinio = newMinio; diff --git a/dist/save/index.js b/dist/save/index.js index 7de64fe..1ac3c1b 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -6589,6 +6589,7 @@ function newMinio() { useSSL: !getInputAsBoolean("insecure"), accessKey: core.getInput("accessKey"), secretKey: core.getInput("secretKey"), + sessionToken: core.getInput("sessionToken"), }); } exports.newMinio = newMinio; diff --git a/src/utils.ts b/src/utils.ts index b6a305d..15297d5 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -18,6 +18,7 @@ export function newMinio() { useSSL: !getInputAsBoolean("insecure"), accessKey: core.getInput("accessKey"), secretKey: core.getInput("secretKey"), + sessionToken: core.getInput("sessionToken"), }); }