About management of security and analysis settings
GitHub can help secure your repositories. This topic tells you how you can manage the security and analysis features for all your existing or new repositories.
You can still manage the security and analysis features for individual repositories. For more information, see 管理存储库的安全和分析设置.
You can also review the security log for all activity on your personal account. For more information, see 审查您的安全日志.
For an overview of repository-level security, see 保护存储库快速入门.
Enabling or disabling features for existing repositories
-
在 GitHub 任意页面的右上角,单击个人资料照片,然后单击 “设置”****。
-
在边栏的“Security”部分中,单击“ Code security”****。
-
Under "Code security", to the right of the feature, click Disable all or Enable all.
-
Optionally, enable the feature by default for new repositories that you own.
-
Click Disable FEATURE or Enable FEATURE to disable or enable the feature for all the repositories you own.
当您为现有仓库启用一个或多个安全和分析功能时,您将在几分钟内看到 GitHub 上显示的任何结果:
- 所有现有仓库将具有选定的配置。
- 如果启用了新存储库的复选框,则新存储库将遵循所选配置。
- 我们使用权限扫描清单文件以应用相关服务。
- 如果启用,您将在依赖关系图中看到依赖项信息。
- 如果启用,GitHub 将对易受攻击的依赖项或恶意软件生成 Dependabot alerts。
- 如果启用,Dependabot 安全更新程序将在触发 Dependabot alerts 时创建拉取请求以升级易受攻击的依赖项。
Enabling or disabling features for new repositories
- 在 GitHub 任意页面的右上角,单击个人资料照片,然后单击 “设置”****。
- 在边栏的“Security”部分中,单击“ Code security”****。
- Under "Code security", to the right of the feature, enable or disable the feature by default for new repositories that you own.