Better error message for expired/invalid PAT
未关闭
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