github / github/gh-codeql

Better error message for expired/invalid PAT

未關閉
#17 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Shell
星號
43
分支
13
PR 合併指標
30 天內沒有已合併 PR

描述

```
$ gh codeql list-versions
expected an object but got: string ("https://docs.github.com/rest")
```

I haven't investigated, but perhaps this is making an invalid API request.

---

EDIT: The reason for the error was an expired PAT. Leaving this issue open so we can provide a better error message in this case.

貢獻指南

開啟貢獻指南

研究方向

從 `gh codeql list-versions` 進入點開始,使用已過期或無效的 PAT 重現該命令。追蹤失敗回應的處理方式,並將完成定義為顯示清楚的驗證錯誤,而不是所回報的 object-versus-string 訊息;此 issue 未指定測試或來源檔案。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
github, shell
領域
api, authentication, cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。