Codespaces user secrets guide describes logout behavior from older GitHub CLI versions

未关闭 适合新手
#47,156 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Jostar2 已经在做这个了。

开始于 2026年12月2日。

  • #47157 来自 @Jostar2 —— 未关闭

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
92/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
markdown
领域
documentation

调研方向

从受影响的 Codespaces 账户专用密钥指南开始,找到说明注销的步骤。使用 GitHub CLI 2.106.0 发行说明作为新的令牌吊销和凭据移除行为的来源,并使用已链接的 2.105.0 注销实现作为旧行为的依据。完成意味着该指南明确区分 GitHub CLI 2.106.0 及更高版本与更早版本,并说明令牌何时必须单独吊销。

由索引模型根据 Issue 内容生成。

描述

triage
Code of Conduct
What article on docs.github.com is affected?

Managing your account-specific secrets for GitHub Codespaces

What part(s) of the article would you like to see updated?

In the steps for managing secrets from inside a codespace, the article says that signing out leaves a copied OAuth token usable and leaves any credentials saved by a Git credential helper in place.

Starting in GitHub CLI 2.106.0, a successful default logout revokes the OAuth token issued for the web sign-in in these instructions. Copies of that token stop working. The CLI also asks the helper to remove saved HTTPS credentials for the host. The guide should distinguish these behaviors from earlier versions so users can tell when they need to revoke a token separately.

Additional information

The behavior change is documented in the 2.106.0 release notes. The 2.105.0 logout command describes the older behavior.

主要语言
TypeScript
星标
21.6k
派生
69.7k
平均合并
8 小时 11 分钟
30 天内合并 PR
100

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/docs 的其他 Issue

查看 github/docs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。