Skip to content

Should this action have an explicit option for OIDC flow rather than rely on presence of webToken? #1223

Open
@chris-mac

Description

@chris-mac

Describe the bug

When using the permission
id-token: write
It seems that that this action automatically goes down the OIDC flow
This is not always intended behaviour i.e. when using both OIDC for another action and IAM instance roles within the same job.
Looks like these lines are responsible
https://github.com/aws-actions/configure-aws-credentials/blob/main/src/assumeRole.ts#L152-L153

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Should be allowed to use both OIDC and non OIDC AWS credentials flow in same action

Current Behavior

AWS auth fails as tries to go down OIDC flow

Reproduction Steps

Create job with id-token: write when you do not want to use the OIDC flow

Possible Solution

Provide explicit OIDC option and do not reply on presence of token(option:true && webToken:true) ?

Additional Information/Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageThis issue still needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions