GitHub:异常流量期间部分 HTTPS 克隆/拉取需临时认证
Some Git over HTTPS may temporarily require authentication
核心代码托管平台的接口行为变更,直接影响依赖 Git over HTTPS 的自动化构建与分发流程。建议读者检查 CI/CD 配置,确保关键节点已启用认证,避免突发流量导致流水线中断。
During periods of unusual traffic, GitHub may temporarily require authentication for some clones and fetches of public repositories over HTTPS to help protect github.com’s availability. If an operation is affected, it will fail with a message indicating that authentication is required.
在流量异常期间,GitHub 可能会暂时要求对通过 HTTPS 协议克隆和获取公共仓库的操作进行身份验证,以帮助保护 github.com 的可用性。如果某项操作受到影响,它将失败并显示需要身份验证的消息。
To continue, authenticate and retry the operation. You can also wait and retry without authentication after the temporary protection has been lifted.
要继续操作,请进行身份验证并重试该操作。您也可以在临时保护措施解除后,无需身份验证即可等待并重试。
GitHub applies this protection as narrowly as possible using signals associated with anomalous traffic. Because legitimate and anomalous traffic can sometimes share those signals, legitimate unauthenticated operations may occasionally be affected. This is not a general authentication requirement for public repositories.
GitHub 会尽可能窄范围地应用此保护措施,使用与异常流量相关的信号。由于合法流量和异常流量有时可能共享这些信号,因此未经验证的合法操作偶尔也会受到影响。这并非针对公共仓库的通用身份验证要求。
The following operations are unaffected:
以下操作不受影响:
- Authenticated Git operations over HTTPS
- Git operations over SSH
- Pushes
- Unrelated GitHub web and API traffic
- 通过 HTTPS 进行的已认证 Git 操作
- 通过 SSH 进行的 Git 操作
- 推送(Pushes)
- 与 GitHub Web 界面和 API 无关的流量
For more reliable automated clones and fetches, configure authentication:
为了实现更可靠的自动化克隆和获取操作,请配置身份验证:
- GitHub Actions: Use the built-in GITHUB_TOKEN.
- Other CI systems: Prefer a GitHub App installation access token. A personal access token can also be used.
- Operations that cannot authenticate: Retry after the temporary protection has been lifted.
- GitHub Actions:使用内置的 GITHUB_TOKEN。
- 其他 CI 系统:优先使用 GitHub App 安装访问令牌。也可以使用个人访问令牌。
- 无法进行身份验证的操作:在临时保护措施解除后重试。
This protection applies to repositories on github.com across all plans.
此保护措施适用于 github.com 上所有计划下的仓库。
For setup instructions, see about authentication to GitHub and managing remote repositories.
有关设置说明,请参阅关于 GitHub 身份验证和管理远程仓库的内容。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力