3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-05-09 03:15:47 +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:
Knut Eirik Leira Hjelle 2023-12-29 23:56:47 +05:30 committed by GitHub
parent 9b747acaaa
commit c43c7a3f1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 31 additions and 9 deletions

View file

@ -4,6 +4,8 @@
This Action provides Amazon Web Services S3 backend (and compatible software) for @actions/cache.
It supports assuming credentials from `aws-actions/configure-aws-credentials` directly from `env`, or you can supply them through inputs.
## Usage
```yaml
@ -19,10 +21,11 @@ This Action provides Amazon Web Services S3 backend (and compatible software) fo
aws-s3-bucket: ${{ secrets.AWS_S3_BUCKET_NAME }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1 # Optional
aws-endpoint: https://example.com # Optional
aws-s3-bucket-endpoint: false # Optional
aws-s3-force-path-style: true # Optional
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }} # Optionally supply session token from aws-actions/configure-aws-credentials
aws-region: us-east-1 # Optional
aws-endpoint: https://example.com # Optional
aws-s3-bucket-endpoint: false # Optional
aws-s3-force-path-style: true # Optional
```
Please see [actions.yml](https://github.com/whywaita/actions-cache-s3/blob/main/action.yml) about input parameters.