-
In the upper-right corner of GitHub, click your profile picture, then click Organizations.
-
Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the "Security" section of the sidebar, select the Code security and analysis dropdown menu, then click Configurations.
-
In the "Code security configurations" section, click the name of the custom security configuration you want to edit.
注意
The default security configuration for an organization is only automatically applied to new repositories created in your organization. If a repository is transferred into your organization, you will still need to apply an appropriate security configuration to the repository manually.
-
Edit the name and description of your custom security configuration as desired.
-
Edit the enablement settings of your custom security configuration as desired.
-
In the "Policy" section, you can modify the configuration's enforcement status. Enforcing a configuration will block repository owners from changing features that are enabled or disabled by the configuration, but features that are not set aren't enforced. Next to "Enforce configuration", select Enforce or Don't enforce from the dropdown menu.
注意
Some situations can break the enforcement of security configurations. See Security configuration enforcement.
-
To apply your changes, click Update configuration.
此版本的 GitHub Enterprise Server 已于以下日期停止服务 2026-03-17. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持。
编辑自定义安全配置
通过编辑你的 custom security configuration 满足存储库的安全需求。