kneemaa / github-action-rotate-aws-secrets

Github Action to rotate AWS Access Keys stored in a repositories secrets
MIT License
37 stars 19 forks source link

Use AWS session token when available #1

Closed LaurenceGA closed 4 years ago

LaurenceGA commented 4 years ago

Hi 👋

In some cases users of this action may which to assume a dedicated role and then update the keys of a user from there.

When you configure AWS credentials you can assume a role. This will put the session token in your env variables.

To allow for this, this action has to provide the session token to the boto client, so this PR does that if the env var exists.

I've also updated the readme.

LaurenceGA commented 4 years ago

@kneemaa Could you take a look if you get a chance?