Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the assumed role name is GitHubActions the action will fail with a non specific error #953

Closed
kle-sd opened this issue Dec 13, 2023 · 5 comments · Fixed by #1003
Closed
Labels
bug Something isn't working documentation This is an issue with documentation p2

Comments

@kle-sd
Copy link

kle-sd commented Dec 13, 2023

Describe the issue

Ran into this for a few hours tonight where I was naming my role to be assumed GitHubActions and was failing to assume role via OIDC. The action spat out this error. Simply renaming the role to anything else ran successfully.

Could not assume role with OIDC: Not authorized to perform sts:AssumeRoleWithWebIdentity

The pitfall is especially time consuming because web searching the error leads to posts suggesting to fix the conditions in the IAM trust policy which are unrelated.

I suggest either highlighting this restricted role name in the documentation, or fixing the issue preventing use of this role name.

@kle-sd kle-sd added documentation This is an issue with documentation needs-triage This issue still needs to be triaged labels Dec 13, 2023
@tim-finnigan
Copy link
Contributor

Thanks for reporting this issue.

@tim-finnigan tim-finnigan added bug Something isn't working p2 and removed needs-triage This issue still needs to be triaged labels Dec 19, 2023
Copy link

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.

1 similar comment
Copy link

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.

@zchenyu
Copy link

zchenyu commented May 23, 2024

Can we get a new release? It seems the fix missed the latest release train v4.0.2 (Feb 6).

@zchenyu
Copy link

zchenyu commented May 23, 2024

Oh nevermind, it seems the "fix" was just to document that it doesn't work. Maybe re-open the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation This is an issue with documentation p2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants