nektos / act

Run your GitHub Actions locally 🚀
https://nektosact.com
MIT License
51.93k stars 1.31k forks source link

AWS SSO Support with aws-actions/configure-aws-credentials #2286

Open kotowick opened 2 months ago

kotowick commented 2 months ago

Act version

act version 0.2.55

Feature description

Does ACT support aws-actions/configure-aws-credentials@v4 from a local machine using AWS SSO?

I tried with role-chaining too.

The below config works in Github Actions, just not locally.

permissions: id-token: write contents: read

fjcero commented 2 months ago

+1!

fiskhest commented 2 months ago

I am no longer an AWS user so I cannot confirm. However, reading the docs for that action, If no access key credentials are given in the action inputs, this action will use credentials from the runner environment using the default methods for the AWS SDK for Javascript. which leads to https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html that says fromIni() is supported. So having configured aws-cli, something like act --container-options "-v /home/<user>/.aws:/home/runner/.aws" might just work. YMMV.

Edit: also found this, maybe it helps. https://github.com/nektos/act/issues/409#issuecomment-1069241315