注意
扩展的令牌元数据检查功能处于公开预览中,并可能发生变化。
This article shows how you can enable extended metadata checks for individual repositories through repository settings. Alternatively, you can enable them at scale using security configurations at the organization or enterprise level. See 删除自定义安全配置 or 为企业创建自定义安全配置.
Prerequisites
Before enabling metadata checks, you need to ensure that validity checks are enabled for the repository. See 为存储库启用有效性检查.
Enabling extended metadata checks
-
在 GitHub 上,导航到存储库的主页面。
-
在仓库名称下,单击 “Settings”****。 如果看不到“设置”选项卡,请选择“”下拉菜单,然后单击“设置”。

-
在边栏的“Security”部分中,单击“ Advanced Security”****。
-
Under "Secret Protection" and "Validity checks", to the right of "Extended metadata", click Enable.