Skip to content

Error when trying to use Container Role with Force Skip OIDC set to true #1697

@simonkarman

Description

@simonkarman

I'm using self hosted GitHub runners and use their container role (aws configure list) as my base credentials from which I assume other credentials.

So I have disabled the use of OIDC.

    - uses: aws-actions/configure-aws-credentials@v5.1.0
      with:
        role-to-assume: my-role
        role-duration-seconds: 3600
        aws-region: eu-west-1
        force-skip-oidc: true

However, this gives me the following error:

If 'force-skip-oidc' is true and 'role-to-assume' is set, 'aws-access-key-id' or 'web-identity-token-file' must be set

As the logic in there requires one of those settings to be active: https://github.com/aws-actions/configure-aws-credentials/blame/b1257c400167d727708335212f95607835cd03fd/src/index.ts#L74

However, in my case I don't want any of those to be active. Can this check be removed so that I can use the Container Role while force skipping OIDC?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp2response-requestedWaiting on additional info and feedback. Will move to 'closing-soon' in 5 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions