Skip to main content

Managing security and analysis settings for your personal account

You can control features that secure and analyze the code in your projects on GitHub.

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 "Managing security and analysis settings for your repository."

You can also review the security log for all activity on your personal account. For more information, see "Reviewing your security log."

For an overview of repository-level security, see "Securing your repository."

Enabling or disabling features for existing repositories

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

    用户栏中的 Settings 图标

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

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

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

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

当您为现有仓库启用一个或多个安全和分析功能时,您将在几分钟内看到 GitHub 上显示的任何结果:

  • 所有现有仓库将具有选定的配置。
  • 如果启用了新存储库的复选框,则新存储库将遵循所选配置。
  • 如果启用,Dependabot 安全更新将在触发 Dependabot alerts 时创建拉取请求以升级易受攻击的依赖项。

Enabling or disabling features for new repositories

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

    用户栏中的 Settings 图标

  2. In the "Security" section of the sidebar, click 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. Checkbox for enabling or disabling a feature for new repositories

Further reading