Skip to content

Commit

Permalink
Merge pull request #12 from endriu0/session_token_addition
Browse files Browse the repository at this point in the history
Addin optional session token to inputs
  • Loading branch information
jackieli-tes authored Feb 14, 2022
2 parents e52d9d6 + dd47bab commit b9186d3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6589,6 +6589,7 @@ function newMinio() {
useSSL: !getInputAsBoolean("insecure"),
accessKey: core.getInput("accessKey"),
secretKey: core.getInput("secretKey"),
sessionToken: core.getInput("sessionToken"),
});
}
exports.newMinio = newMinio;
Expand Down
1 change: 1 addition & 0 deletions dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6589,6 +6589,7 @@ function newMinio() {
useSSL: !getInputAsBoolean("insecure"),
accessKey: core.getInput("accessKey"),
secretKey: core.getInput("secretKey"),
sessionToken: core.getInput("sessionToken"),
});
}
exports.newMinio = newMinio;
Expand Down
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function newMinio() {
useSSL: !getInputAsBoolean("insecure"),
accessKey: core.getInput("accessKey"),
secretKey: core.getInput("secretKey"),
sessionToken: core.getInput("sessionToken"),
});
}

Expand Down

0 comments on commit b9186d3

Please sign in to comment.