aws / git-remote-codecommit

An implementation of Git Remote Helper that makes it easier to interact with AWS CodeCommit
Apache License 2.0
271 stars 38 forks source link

BUG: Display Specific AWS SSO Profile in Token Expiry Error Messages #53

Open sohang3112 opened 3 months ago

sohang3112 commented 3 months ago

When executing Git commands like git push, git pull, or git fetch without first performing an AWS SSO login, the following error occurs:

botocore.exceptions.TokenRetrievalError: Error when retrieving token from sso: Token has expired and refresh failed

This error should be caught and replaced with a more informative message that specifies the AWS SSO profile requiring login. This enhancement is particularly useful for environments with multiple AWS SSO profiles, helping users easily identify which profile needs to be logged in for the current AWS CodeCommit repository.

sohang3112 commented 1 month ago

Who maintains this repo currently - @ZhwuAMZN are you the current maintainer?

I would like to work on fixing this issue - please confirm whether a Pull Request to fix this issue would be welcomed.