Skip to main content

Enterprise Server 3.21 está disponível no momento como versão candidata a lançamento.

Creating a custom security configuration

Build a custom security configuration to meet the specific security needs of repositories in your organization.

Quem pode usar esse recurso?

Proprietários da organização, gerentes de segurança e membros da organização com a função de administrador

About custom security configurations

With custom security configurations, you can create collections of enablement settings for GitHub's security products to meet the specific security needs of your organization. For example, you can create a different custom security configuration for each organization or group of organizations to reflect their unique security requirements and compliance obligations.

You can also choose whether or not you want to include GitHub Code Security or GitHub Secret Protection features in a configuration.

If you do, keep in mind that these features incur usage costs (or require GitHub Advanced Security licenses) when applied to private and internal repositories. For more information, see Sobre GitHub Segurança Avançada.

When creating a security configuration, keep in mind that:

  • Only features installed by a site administrator on your GitHub Enterprise Server instance will appear in the UI.
  • Some features will only be visible if your organization or GitHub Enterprise Server instance has purchased the relevant GitHub Advanced Security product (GitHub Code Security or GitHub Secret Protection).
  • Certain features, like Dependabot security updates and code scanning default setup, also require that GitHub Actions is installed on the GitHub Enterprise Server instance.

Importante

A ordem e os nomes de algumas configurações serão diferentes dependendo de você estar usando licenças do produto GitHub Advanced Security original ou dos dois novos produtos: GitHub Code Security e GitHub Secret Protection. See Creating a GitHub Advanced Security configuration or Creating a Secret Protection and Code Security configuration.

Creating a Secret Protection and Code Security configuration

  1. No canto superior direito de GitHub, clique na foto de perfil e clique em Your organizations.

  2. No nome da organização, clique em Settings. Caso não consiga ver a guia "Configurações", selecione o menu suspenso , clique em Configurações.

    Captura de tela das guias no perfil de uma organização. A guia "Configurações" está contornada em laranja escuro.

  3. Na seção "Segurança" da barra lateral, selecione o menu suspenso Advanced Security e clique em Configurações.

  4. In the "Security configurations" section, click New configuration.

  5. To configure groups of security features for your repositories, click Custom configuration.

  6. To help identify your custom security configuration and clarify its purpose on the "Security configurations" page, name your configuration and create a description.

  7. Optionally, enable "Secret Protection", a paid feature for private repositories. Enabling Secret Protection enables alerts for secret scanning. In addition, you can choose whether to enable, disable, or keep the existing settings for the following secret scanning features:

  8. Optionally, enable "Code Security", a paid feature for private repositories. You can choose whether to enable, disable, or keep the existing settings for the following code scanning features:

    • Default setup. To learn more about default setup, see Configuring default setup for code scanning.

      Observação

      Para criar uma configuração que você pode aplicar a todos os repositórios, independentemente da configuração atual do code scanning, escolha "Enabled with advanced setup allowed". Isso habilita a configuração padrão apenas em repositórios em que a análise de CodeQL não é executada ativamente. Opção disponível em GitHub Enterprise Server 3.19.

    • Runner type. If you want to target specific runners for code scanning, you can choose to use custom-labeled runners at this step. See Configuring default setup for code scanning.
    • Prevent direct alert dismissals. To learn more, see Enabling delegated alert dismissal for code scanning.
  9. Still under "Code Security", in the "Dependency scanning" table, choose whether you want to enable, disable, or keep the existing settings for the following dependency scanning features:

  10. Optionally, in the "Policy" section, you can use additional options to control how the configuration is applied:

    • Use as default for newly created repositories. Select the None dropdown menu, then click Public, Private and internal, or All repositories.

      Observação

      O security configuration padrão de uma organização é aplicado automaticamente apenas a novos repositórios criados dentro da organização. Se um repositório for transferido para sua organização, você ainda precisará aplicar um security configuration apropriado ao repositório manualmente.

    • Enforce configuration. Block repository owners from changing features that are enabled or disabled by the configuration (features that are not set aren't enforced). Select Enforce from the dropdown menu.

    Observação

    Algumas situações podem interromper a aplicação de security configurations. Confira Security configuration enforcement.

  11. Para concluir a criação do seu custom security configuration, clique em Salvar configuração.

Creating a GitHub Advanced Security configuration

  1. No canto superior direito de GitHub, clique na foto de perfil e clique em Your organizations.

  2. No nome da organização, clique em Settings. Caso não consiga ver a guia "Configurações", selecione o menu suspenso , clique em Configurações.

    Captura de tela das guias no perfil de uma organização. A guia "Configurações" está contornada em laranja escuro.

  3. Na seção "Segurança" da barra lateral, selecione o menu suspenso Advanced Security e clique em Configurações.

  4. In the "Security configurations" section, click New configuration.

  5. To help identify your custom security configuration and clarify its purpose on the "New configuration" page, name your configuration and create a description.

  6. In the "GitHub Advanced Security features" row, choose whether to include or exclude GitHub Advanced Security (GHAS) features.

  7. In the "Secret scanning" table, choose whether you want to enable, disable, or keep the existing settings for the following security features:

  8. In the "Code scanning" table, choose whether you want to enable, disable, or keep the existing settings for code scanning default setup.

    • Default setup. To learn more about default setup, see Configuring default setup for code scanning.

      Observação

      Para criar uma configuração que você pode aplicar a todos os repositórios, independentemente da configuração atual do code scanning, escolha "Enabled with advanced setup allowed". Isso habilita a configuração padrão apenas em repositórios em que a análise de CodeQL não é executada ativamente. Opção disponível em GitHub Enterprise Server 3.19.

    • Runner type. If you want to target specific runners for code scanning, you can choose to use custom-labeled runners at this step. See Configuring default setup for code scanning.
    • Prevent direct alert dismissals. To learn more, see Enabling delegated alert dismissal for code scanning.
  9. In the "Dependency scanning" table, choose whether you want to enable, disable, or keep the existing settings for the following dependency scanning features:

  10. Optionally, in the "Policy" section, you can use additional options to control how the configuration is applied:

    • Use as default for newly created repositories. Select the None dropdown menu, then click Public, Private and internal, or All repositories.

      Observação

      O security configuration padrão de uma organização é aplicado automaticamente apenas a novos repositórios criados dentro da organização. Se um repositório for transferido para sua organização, você ainda precisará aplicar um security configuration apropriado ao repositório manualmente.

    • Enforce configuration. Block repository owners from changing features that are enabled or disabled by the configuration (features that are not set aren't enforced). Select Enforce from the dropdown menu.
  11. Para concluir a criação do seu custom security configuration, clique em Salvar configuração.

Next steps

To apply your custom security configuration to repositories in your organization, see Applying a custom security configuration.

Para saber como editar seu custom security configuration, consulte Editing a custom security configuration.