This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(print): Segment fault if cannot assume role (#36)
If `print` cannot assume a role, then error instead of attempting to print invalid credentials. This resolves the issue where if the `AssumeRole` cannot be assumed with the permissions of the AWS SSO Role, then it will attempt to print `nil` credentials, resulting in a segfault (`panic: runtime error: invalid memory address or nil pointer dereference`). This can reproduced by removing all policies from an SSO role, resulting in `AssumeRole` failing on permission denied.
- Loading branch information