GitHub 推出专用 AI 模型用于泄露密钥检测,支持 GHES 3.23
Purpose-built model for leaked secret detection
核心安全基础设施引入关键计费项(AI Credits)并扩展至 GHES 3.23。涉及 Push Protection 和 Copilot 的计费变更,请务必在启用前检查组织预算设置,避免意外产生费用。
Secret protection should keep pace with the way you build software, whether you write code yourself or work with an AI agent. With our new purpose-built model, we’re bringing context-aware detection into more developer workflows to help you catch secrets before they’re exposed.
秘密保护应与您构建软件的方式同步,无论您是自行编写代码还是与 AI 代理协作。借助我们全新打造的专用模型,我们将将上下文感知检测引入更多开发者工作流,帮助您在秘密泄露前将其捕获。
What’s new
最新动态
Today, we’re sharing plans for AI secret detection across secret scanning alerts, push protection, and GitHub Copilot security reviews. These features leverage GitHub’s fine-tuned model for secret detection. It reads surrounding code to identify likely credentials, including passwords without a recognizable token format, without generating code or prose.
今天,我们分享了在秘密扫描警报、推送保护和 GitHub Copilot 安全审查中针对 AI 秘密检测的计划。这些功能利用了 GitHub 微调的秘密检测模型。该模型会读取周围代码以识别可能的凭据,包括没有可识别令牌格式的密码,且不会生成代码或文本。
Model availability:
模型可用性:
- Customers with AI-detected Password alerts have automatically been upgraded to the new model.
- AI-detected secrets in push protection is available in private preview.
- AI-based secret scanning with the GitHub Copilot /security-review command for the Copilot CLI and Copilot app available soon in private preview.
- 已收到 AI 检测到的密码警报的客户已自动升级至新模型。
- 推送保护中的 AI 检测秘密目前处于私密预览阶段。
- 基于 AI 的秘密扫描(使用适用于 Copilot CLI 和 Copilot 应用的 GitHub Copilot /security-review 命令)即将在私密预览中开放。
Billing notice and availability
计费通知及可用性
AI-detected secret alerts will remain included in GHSP and GHAS at no additional charge. The new opt-in checks for push protection and the security review command will consume GitHub AI Credits.
AI 检测到的秘密警报将继续包含在 GHSP 和 GHAS 中,不收取额外费用。新的可选推送保护检查和安全性审查命令将消耗 GitHub AI 积分。
We’re sharing their planned billing model ahead of broader availability so you can review access and spending before enabling them.
我们在更广泛可用之前分享其计划中的计费模式,以便您在启用这些功能之前审查访问权限和支出情况。
This notice applies to the following features:
此通知适用于以下功能:
- AI-detected secrets in push protection for GitHub Secret Protection (GHSP) and GitHub Advanced Security (GHAS)
- AI-based secret scanning with the GitHub Copilot /security-review command
- GitHub 秘密保护 (GHSP) 和 GitHub Advanced Security (GHAS) 中推送保护的 AI 检测秘密
- 使用 GitHub Copilot /security-review 命令的基于 AI 的秘密扫描
AI Credit usage for these opt-in checks will be introduced in the coming weeks.
这些可选检查的 AI 积分使用情况将在未来几周内推出。
AI-detected alerts remain included with Secret Protection
AI 检测到的警报仍包含在秘密保护中
Starting today, existing AI-detected secret alert scans will automatically switch to the new model at no additional charge for GHSP and GHAS customers. These scans remain included in GHSP and GHAS, separate from the new credit-consuming checks.
从今天起,现有的 AI 检测秘密警报扫描将自动切换至新模型,GHSP 和 GHAS 客户无需支付额外费用。这些扫描仍包含在 GHSP 和 GHAS 中,与新的消耗积分的检查分开。
AI-detected alerts are coming to GitHub Enterprise Server
AI 检测到的警报即将登陆 GitHub Enterprise Server
The model will also bring AI-detected alerts to GHES 3.23 in public preview. This feature is included with an enterprise’s existing purchase of GHSP and GHAS.
该模型还将通过公开预览将 AI 检测到的警报带入 GHES 3.23。此功能包含在企业已购买的 GHSP 和 GHAS 中。
AI secret detection in push protection
推送保护中的 AI 秘密检测
AI push protection checks for unstructured credentials at push time, giving you a chance to remove a secret before it enters repository history. The feature will be available to customers on GitHub Enterprise Cloud or GitHub Teams with a purchase of GHSP or GHAS. An administrator must enable it, subject to your organization’s or enterprise’s policies.
AI 推送保护在推送时检查非结构化凭据,让你有机会在密钥进入仓库历史之前将其移除。该功能将向购买了 GHSP 或 GHAS 的 GitHub Enterprise Cloud 或 GitHub Teams 客户开放。管理员必须启用它,具体取决于你所在组织或企业的策略。
The planned AI Credit usage will be billed to the organization that owns the repository. A check can consume credits even if it doesn’t block a push. Outside of user-namespace repositories for enterprise-managed users (EMUs), where usage is attributed to the pusher and apply to the user’s allocated credits, AI Credit usage will be attributed to the organization and will not apply to any specific user’s allocated credits. Usage will be listed under AI Credit consumption for the Secret Protection AI Credits SKU in your AI usage insights.
计划的 AI Credit 使用量将向拥有该仓库的组织计费。即使检查未阻止推送,也可能消耗积分。在企业托管用户(EMU)的用户命名空间仓库之外,使用量归因于推送者并适用于用户分配的积分;在其他情况下,AI Credit 使用量将归因于组织,且不适用于任何特定用户的分配积分。使用量将在你的 AI 使用洞察中,以 Secret Protection AI Credits SKU 的名义列出在 AI Credit 消费下。
Billing begins once your organization opts into the public preview and enables the feature.
一旦你的组织选择加入公开预览并启用该功能,计费即开始。
AI secret checks in GitHub Copilot /security-review
GitHub Copilot /security-review 中的 AI 密钥检查
In a supported Copilot CLI or Copilot App session, use /security-review before committing, pushing, or requesting pull request review. It reviews active changes for security vulnerabilities and returns prioritized findings with remediation suggestions.
在受支持的 Copilot CLI 或 Copilot App 会话中,在提交、推送或请求拉取请求审查之前使用 /security-review。它会审查活动更改中的安全漏洞,并返回带有修复建议的优先级发现结果。
Developers and coding agents can use the built-in security-review specialist, address confirmed findings with the appropriate authorization, and run the review again after fixes. The review is read-only—existing Copilot policies and billing apply.
开发人员和编码代理可以使用内置的 security-review 专家,在获得适当授权后处理已确认的发现结果,并在修复后再次运行审查。审查是只读的——现有的 Copilot 策略和计费规则适用。
Coming soon, GitHub is adding checks from the secret classifier alongside the existing LLM-based review. You don’t need a GHSP or GHAS license to use these checks. The new checks will consume AI Credits in addition to the review’s existing usage. The billing account for your active Copilot plan will receive this usage, reported under GHSP in your AI usage insights. Billing begins once you opt into the public preview and enable the feature.
即将推出:GitHub 将在现有的基于 LLM 的审查旁添加来自密钥分类器的检查。你不需要 GHSP 或 GHAS 许可证即可使用这些检查。新检查除了现有审查的使用量外,还将消耗 AI Credit。你活跃 Copilot 计划的计费账户将接收此使用量,并在你的 AI 使用洞察中以 GHSP 名义报告。一旦你选择加入公开预览并启用该功能,计费即开始。
The new checks will be off by default. Running /security-review won’t enable them. You must opt in where your plan and policies allow. Agents shouldn’t enable credit-consuming features or change policies or budgets without explicit authorization.
新检查默认处于关闭状态。运行 /security-review 不会启用它们。你必须在计划允许的策略范围内选择加入。代理不应在未获得明确授权的情况下启用消耗积分的功能或更改策略或预算。
See the Copilot CLI security-review agent documentation and security-review instructions for Copilot App sessions.
请参阅 Copilot CLI security-review 代理文档以及 Copilot App 会话中的 security-review 说明。
Plans and platforms
计划和平台
GitHub hosting plans, GHSP licenses, and Copilot subscriptions are separate. GitHub Enterprise (GHE) includes GitHub Enterprise Cloud (GHEC) and GitHub Enterprise Server (GHES). Copilot Enterprise is a separate Copilot subscription.
GitHub 托管计划、GHSP 许可证和 Copilot 订阅是独立的。GitHub Enterprise (GHE) 包括 GitHub Enterprise Cloud (GHEC) 和 GitHub Enterprise Server (GHES)。Copilot Enterprise 是一个独立的 Copilot 订阅。
| Plan or platform | Eligibility for these updates |
|---|---|
| GitHub Team and GHEC on github.com | AI push protection requires paid GHSP or GHAS coverage. Public, private, and internal repositories can qualify. |
| GHEC with data residency on ghe.com | Copilot Business and Enterprise are supported plans on this platform with the Copilot security review command. AI push protection is planned with paid GHSP/GHAS coverage. |
| GHES | The new model is planned for AI-detected alerts in GHES 3.23, at no additional charge with GHSP/GHAS. AI push protection isn’t part of this Server release. The Copilot security review command isn’t part of this Server release. |
| Individual Copilot plans: Pro, Pro+, Max, Free, and Student | Eligible for security review checks with the new model, subject to access controls and credit consumption. No GHSP or GHAS license is required. |
| Copilot Business and Copilot Enterprise | Eligible for security review checks with the new model on supported platforms, subject to invitation and administrator policies. These subscriptions don’t replace the GHSP license required for AI push protection. |
| 计划或平台 | 这些更新的资格 |
|---|---|
| GitHub Team 和 github.com 上的 GHEC | AI 推送保护需要付费的 GHSP 或 GHAS 覆盖范围。公共、私有和内部存储库均可符合条件。 |
| ghe.com 上具有数据驻留功能的 GHEC | Copilot Business 和 Enterprise 是此平台上支持使用 Copilot 安全审查命令的计划。AI 推送保护计划通过付费的 GHSP/GHAS 覆盖范围提供。 |
| GHES | 新模型计划用于 GHES 3.23 中 AI 检测到的警报,在 GHSP/GHAS 下不收取额外费用。AI 推送保护不是此服务器版本的一部分。Copilot 安全审查命令也不是此服务器版本的一部分。 |
| 个人 Copilot 计划:Pro、Pro+、Max、Free 和 Student | 符合使用新模型进行安全审查检查的资格,受访问控制和积分消耗的限制。不需要 GHSP 或 GHAS 许可证。 |
| Copilot Business 和 Copilot Enterprise | 在支持的平台上符合使用新模型进行安全审查检查的资格,受邀请和管理员策略的限制。这些订阅不能替代 AI 推送保护所需的 GHSP 许可证。 |
Manage access and spending
管理访问权限和支出
Organization and enterprise administrators will be able to disable the new capabilities by policy and set budgets for their AI Credit usage. Opting in won’t override those controls. Applicable included credits and any additional paid usage follow your account’s billing policies and limits.
组织和企业管理员将能够按策略禁用新功能,并为他们的 AI Credit 使用设置预算。选择加入不会覆盖这些控制措施。适用的包含积分以及任何额外的付费使用遵循您账户的计费政策和限制。
To set a dedicated budget, open Billing and licensing and select Budgets and alerts. Choose SKU-level budget, Advanced Security as the product, and Secret Protection AI Credits as the SKU. An all AI Credits budget can cover multiple credit-consuming SKUs.
要设置专用预算,请打开“账单和许可”并选择“预算和警报”。选择 SKU 级别预算,产品为 Advanced Security,SKU 为 Secret Protection AI Credits。所有 AI Credits 预算可以覆盖多个消耗积分的 SKU。
Budget alerts alone don’t stop usage. Configure Stop usage when budget limit is reached where available if you want a spending cap.
仅预算警报不会停止使用。如果希望设置支出上限,请在可用时配置“达到预算限制时停止使用”。
If you’re already using AI push protection in private preview, continued use after this billing change takes effect will consume AI Credits. Disable it beforehand if you don’t want that usage. AI-detected alert scanning remains included at no additional charge.
如果您已经在私有预览中使用 AI 推送保护,在此计费变更生效后继续使用将消耗 AI Credits。如果您不希望产生该用量,请事先禁用它。AI 检测到的警报扫描仍包含在内,不收取额外费用。
Before enabling or continuing the new checks, review the eligibility, AI Credit pricing, and billing details above, along with your budget settings and documentation for usage-based billing.
在启用或继续运行新检查之前,请查看上述的资格、AI Credit 定价和计费详情,以及您的预算设置和基于用量的计费文档。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力