Skip to main content

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

Managing security and analysis features

You can control features that secure and analyze the code in your projects on 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 管理存储库的安全和分析设置.

Enabling or disabling features for existing repositories

  1. 在 GitHub 任意页面的右上角,单击个人资料照片,然后单击 “设置”****。

  2. 在边栏的“Security”部分中,单击“ Code security and analysis”****。

  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. 在 GitHub 任意页面的右上角,单击个人资料照片,然后单击 “设置”****。
  2. 在边栏的“Security”部分中,单击“ Code security and analysis”****。
  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