Skip to main content

此版本的 GitHub Enterprise Server 将于以下日期停止服务 2026-03-17. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

管理安全和分析功能

您可以控制功能以保护 GitHub 上项目的安全并分析其中的代码。

注意

This topic tells you how you can manage the security and analysis features for all your existing or new repositories. For information on managing these settings for individual repositories, see Managing security and analysis settings for your repository.

Enabling or disabling features for existing repositories

  1. In the upper-right corner of any page on GitHub, click your profile picture, then click Settings.

  2. In the "Security" section of the sidebar, click Code security.

  3. Under "Code security and analysis", to the right of the feature, click Disable all or Enable all.

  4. Optionally, enable the feature by default for new repositories that you own.

  5. Click Disable FEATURE or Enable FEATURE to disable or enable the feature for all the repositories you own.

Enabling or disabling features for new repositories

  1. In the upper-right corner of any page on GitHub, click your profile picture, then click Settings.
  2. In the "Security" section of the sidebar, click Code security.
  3. Under "Code security and analysis", to the right of the feature, enable or disable the feature by default for new repositories that you own.

Next steps