aws / aws/git-remote-codecommit

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

オープン
#53 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
289
フォーク
40
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、git push、git pull、git fetch で使用される Git remote-helper の経路を追跡し、次に botocore TokenRetrievalError がどこで表面化するかを特定します。そこでアクティブな AWS SSO プロファイルをどのように利用できるかを確認し、期限切れトークンのカバレッジを追加します。エラーがログインが必要なプロファイルを特定し、他の失敗を分かりにくくしなければ完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
authentication, cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。