Open kotowick opened 2 months ago
+1!
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
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