Esta versión de GitHub Enterprise se discontinuará el 2022-02-16. No se realizarán lanzamientos de patch, ni siquiera para problemas de seguridad críticos. Para obtener un mejor desempeño, más seguridad y nuevas características, actualiza a la última versión de GitHub Enterprise. Para obtener ayuda con la actualización, contacta al soporte de GitHub Enterprise.

Securing your repository

You can use a number of GitHub features to help keep your repository secure.

Repository administrators and organization owners can configure repository security settings.

Introduction

This guide shows you how to configure security features for a repository. You must be a repository administrator or organization owner to configure security settings for a repository.

Your security needs are unique to your repository, so you may not need to enable every feature for your repository. For more information, see "GitHub security features."

Some security features are only available if you have an Advanced Security license. Para obtener más información, consulta la sección "Acerca de GitHub Advanced Security".

Managing access to your repository

The first step to securing a repository is to set up who can see and modify your code. For more information, see "Managing repository settings."

From the main page of your repository, click Settings, then scroll down to the "Danger Zone."

Managing the dependency graph

The dependency graph and Las alertas del dependabot are configured at an enterprise level by the enterprise owner. Para obtener más información, consulta la sección "Habilitar la gráfica de dependencias y las Las alertas del dependabot en tu cuenta empresarial".

For more information, see "Exploring the dependencies of a repository."

Managing Las alertas del dependabot

The dependency graph and Las alertas del dependabot are configured at an enterprise level by the enterprise owner. Para obtener más información, consulta la sección "Habilitar la gráfica de dependencias y las Las alertas del dependabot en tu cuenta empresarial".

For more information, see "About alerts for vulnerable dependencies."

Configuring escaneo de código

Escaneo de código is available for organization-owned repositories if you have an Advanced Security license.

You can set up escaneo de código to automatically identify vulnerabilities and errors in the code stored in your repository by using a Flujo de trabajo de análisis de CodeQL or third-party tool. For more information, see "Setting up escaneo de código for a repository."

Configuring escaneo de secretos

Escaneo de secretos is available for organization-owned repositories if you have an Advanced Security license.

Escaneo de secretos may be enabled for your repository by default depending upon your organization's settings.

  1. From the main page of your repository, click Settings.
  2. Click Security & analysis.
  3. If GitHub Advanced Security is not already enabled, click Enable.
  4. Next to Escaneo de secretos, click Enable.

Next steps

You can view and manage alerts from security features to address dependencies and vulnerabilities in your code. For more information, see "Viewing and updating vulnerable dependencies in your repository," "Managing escaneo de código for your repository," and "Managing alerts from escaneo de secretos."

¿Te ayudó este documento?

Política de privacidad

¡Ayúdanos a hacer geniales estos documentos!

Todos los documentos de GitHub son de código abierto. ¿Notas algo que esté mal o que no sea claro? Emite una solicitud de cambios.

Haz una contribución

O, aprende cómo contribuir.