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 摘要。