Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for aws session token #16

Merged
merged 4 commits into from
Dec 29, 2023

Conversation

hjellek
Copy link

@hjellek hjellek commented Dec 11, 2023

Description

Add support for supplying AWS Session Token as input, so assuming roles from aws-actions/configure-aws-credentials works correctly

Motivation and Context

I was unable to access the S3 bucket without this token supplied when assuming a role through aws-actions/configure-aws-credentials

How Has This Been Tested?

Pointed my workflow at my own branch and saw that accessing the S3 bucket now worked

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (add or update README or docs)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

README.md Outdated
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 }} # Optional
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please write How to generate token e.g. generated token from aws-actions/configure-aws-credentials

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Thanks for your work on the S3 backed version of the cache action.

@whywaita whywaita merged commit c43c7a3 into whywaita:main Dec 29, 2023
15 checks passed
@whywaita
Copy link
Owner

I released https://github.com/whywaita/actions-cache-s3/releases/tag/v3.0.4 for your change. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants