About enabling 机密扫描
机密扫描 can be enabled for any repository that is owned by an organization, and for repositories owned by user accounts when using GitHub Enterprise Cloud with Enterprise Managed Users.
If you're an organization owner, you can enable secret scanning for multiple repositories at a time using security configurations. For more information, see 大规模启用安全功能.
If your organization is owned by an enterprise account, an enterprise owner can also enable secret scanning at the enterprise level. For more information, see 为企业创建自定义安全配置.
Enabling 机密扫描
-
在 GitHub 上,导航到存储库的主页面。
-
在仓库名称下,单击 “Settings”****。 如果看不到“设置”选项卡,请选择“”下拉菜单,然后单击“设置”。

-
在边栏的“Security”部分中,单击“ Code security and analysis”****。
-
When you enable Advanced Security, secret scanning may automatically be enabled for the repository due to the organization's settings. If "Secret scanning" is shown with an Enable button, you still need to enable secret scanning by clicking Enable. If you see a Disable button, secret scanning is already enabled.

A repository administrator can choose to disable secret scanning for a repository at any time. For more information, see 管理存储库的安全和分析设置.