Enabling scanning for generic patterns
You can enable scanning for generic patterns. Generic patterns correspond to secrets such as private keys.
For more information about generic patterns, see "支持的机密扫描模式."
Enabling detection of generic patterns for a repository
-
在 GitHub 上,导航到存储库的主页面。
-
在仓库名称下,单击 “Settings”****。 如果看不到“设置”选项卡,请选择“”下拉菜单,然后单击“设置”。

-
在边栏的“Security”部分中,单击“ Advanced Security”****。
-
Under "Secret Protection", to the right of "Generic patterns", click Enable.
Enabling detection of generic patterns for an organization
You can enable scanning for generic patterns at the organization level by applying a custom security configuration. For more information, see 删除自定义安全配置.