mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-05-19 22:34:45 +00:00
Add support for aws session token (#16)
* Added support for supplying session token * Update build * Updated documentation * Updated readme
This commit is contained in:
parent
9b747acaaa
commit
c43c7a3f1b
8 changed files with 31 additions and 9 deletions
|
@ -9,6 +9,7 @@ export enum Inputs {
|
|||
AWSS3Bucket = "aws-s3-bucket",
|
||||
AWSAccessKeyId = "aws-access-key-id",
|
||||
AWSSecretAccessKey = "aws-secret-access-key",
|
||||
AWSSessionToken = "aws-session-token",
|
||||
AWSRegion = "aws-region",
|
||||
AWSEndpoint = "aws-endpoint",
|
||||
AWSS3BucketEndpoint = "aws-s3-bucket-endpoint",
|
||||
|
|
|
@ -93,7 +93,10 @@ export function getInputS3ClientConfig(): S3ClientConfig | undefined {
|
|||
process.env["AWS_ACCESS_KEY_ID"],
|
||||
secretAccessKey:
|
||||
core.getInput(Inputs.AWSSecretAccessKey) ||
|
||||
process.env["AWS_SECRET_ACCESS_KEY"]
|
||||
process.env["AWS_SECRET_ACCESS_KEY"],
|
||||
sessionToken:
|
||||
core.getInput(Inputs.AWSSessionToken) ||
|
||||
process.env["AWS_SESSION_TOKEN"]
|
||||
},
|
||||
region: core.getInput(Inputs.AWSRegion) || process.env["AWS_REGION"],
|
||||
endpoint: core.getInput(Inputs.AWSEndpoint),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue