Open
Description
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