Prerequisites
Before you configure GitHub Secret Protection, you should run the free secret risk assessment to inform your enablement strategy. See 为您的组织运行保密风险评估.
Configuring GitHub Secret Protection
-
在 GitHub 上,导航到组织的主页面。
-
在组织名称下,单击“ Security”****。

-
在边栏的“Security”下,单击“ Assessments”****。
-
In the banner display, select the Get started dropdown menu, then click one of following enablement options:
- For public repositories for free: Click to enable for only public repositories in your organization.
- For all repositories: Click to see an estimated cost for GitHub Secret Protection for all repositories in your organization.
- If you are satisfied with the pricing estimate, to enable secret scanning alerts and push protection across your organization, click Enable Secret Protection.
- Alternatively, click Configure in settings to customize which repositories you want to enable Secret Protection for. See 在组织中应用 GitHub 建议的安全配置 and 删除自定义安全配置.