官方更新 GitHub Changelog Tue, 13 Oct 2026 正文 ok 184 words

Secret scanning 默认阻止 Anthropic 密钥,并新增 Salesforce 支持

英文标题:Secret scanning blocks Anthropic keys by default, adds Salesforce

GitHub Secret scanning 现已新增对 Salesforce、Anthropic 和 Cloudsmith 多种密钥类型的检测支持,其中 Salesforce 成为新的密钥扫描合作伙伴。对于在公开仓库中发现的合作伙伴密钥,GitHub 会将信息转发给相应服务提供商,以便其在凭据被滥用前撤销或轮换。Anthropic 的服务 API 密钥和用户 API 密钥现默认纳入 Push Protection,启用 Secret scanning 的仓库提交此类密钥时将被自动阻止。该更新有助于开发者更早发现和阻止 AI 服务及云服务凭据泄露。
打开原文相关 2 · 机会 3
media16.2 KB media930.7 KB

中文

Secret scanning 现在可检测来自 Salesforce、Anthropic 和 Cloudsmith 的新密钥类型,其中新的 Anthropic 密钥类型默认通过 Push Protection 进行阻止。

Salesforce 现已成为 Secret scanning 合作伙伴。

当在公开仓库中发现某个提供商的密钥时,GitHub 会将其转发给相应合作伙伴,以便合作伙伴在凭据遭到滥用前撤销或轮换该凭据。

提供商 密钥类型
Salesforce salesforce_marketing_cloud_api_oauth2_token

Secret scanning 现在会自动检测仓库中的以下新密钥类型。

提供商 密钥类型
Anthropic anthropic_service_api_key
Anthropic anthropic_user_api_key
Cloudsmith cloudsmith_api_key

在密钥扫描合作伙伴计划中,Partner 密钥一旦在公开仓库中被发现,便会自动报告给密钥签发方。User 密钥在公开或私有仓库中被发现时,会生成 Secret scanning 警报。

以下检测器现已默认纳入 Push Protection。启用了 Secret scanning 的仓库(包括免费的公开仓库)如提交中包含这些密钥,将自动阻止该提交。

提供商 密钥类型
Anthropic anthropic_service_api_key
Anthropic anthropic_user_api_key

请参阅文档,进一步了解 Secret scanning,并查看受支持密钥的完整列表。欢迎在社区讨论中告诉我们你的看法。

English / 原文

Secret scanning now detects new secret types from Salesforce, Anthropic, and Cloudsmith, with the new Anthropic secret types blocked with push protection by default.

Salesforce is now a secret scanning partner.

When a provider’s secret is found in a public repository, GitHub forwards it to the relevant partner so they can revoke or rotate the credential before it can be abused.

Provider Secret type
Salesforce salesforce_marketing_cloud_api_oauth2_token

Secret scanning now automatically detects the following new secret types in your repositories.

Provider Secret type
Anthropic anthropic_service_api_key
Anthropic anthropic_user_api_key
Cloudsmith cloudsmith_api_key

Partner secrets are automatically reported to the secret issuer when found in public repositories through the secret scanning partnership program. User secrets generate secret scanning alerts when found in public or private repositories.

The following detectors are now included in push protection by default. Repositories with secret scanning enabled, including free public repositories, will have commits containing these secrets automatically blocked.

Provider Secret type
Anthropic anthropic_service_api_key
Anthropic anthropic_user_api_key

Learn more about secret scanning and see the full list of supported secrets in our documentation. Let us know what you think in the community discussion.