[GH-ISSUE #2286] AWS SSO Support with aws-actions/configure-aws-credentials #1063

Open
opened 2026-03-01 21:48:38 +03:00 by kerem · 2 comments
Owner

Originally created by @kotowick on GitHub (Apr 10, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2286

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

  • name: (Local) - Configure AWS Credentials
    id: aws-creds
    uses: aws-actions/configure-aws-credentials@v4
    with:
    role-to-assume: some_role
    role-session-name: some_session
    aws-region: some_region
Originally created by @kotowick on GitHub (Apr 10, 2024). Original GitHub issue: https://github.com/nektos/act/issues/2286 ### 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 - name: (Local) - Configure AWS Credentials id: aws-creds uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: some_role role-session-name: some_session aws-region: some_region
Author
Owner

@fjcero commented on GitHub (Apr 14, 2024):

+1!

<!-- gh-comment-id:2053879229 --> @fjcero commented on GitHub (Apr 14, 2024): +1!
Author
Owner

@fiskhest commented on GitHub (Apr 22, 2024):

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

<!-- gh-comment-id:2069079202 --> @fiskhest commented on GitHub (Apr 22, 2024): 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1063
No description provided.