common-fate / granted

The easiest way to access your cloud.
https://granted.dev
MIT License
964 stars 91 forks source link

fix panic: runtime error #537

Closed shwethaumashanker closed 8 months ago

shwethaumashanker commented 8 months ago

What changed?

Added nil check for profile.RawConfig in assume.go

Why?

it was causing a panic: runtime error when you run assume --sso --sso-start-url ... --sso-region ... --account-id ... --role-name ...

How did you test it?

locally, the error got fixed. I was able to replicate it by using the format above

Potential risks

Is patch release candidate?

Link to relevant docs PRs