Skip to main content

Enabling validity checks for your repository

Enabling validity checks on your repository helps you prioritize the remediation of alerts as it tells you if a secret is active or inactive.

¿Quién puede utilizar esta característica?

Las comprobaciones de validez de los patrones de asociado están disponibles para los siguientes tipos de repositorio:

  • Repositorios propiedad de la organización en GitHub Team o GitHub Enterprise Cloud con GitHub Secret Protection habilitado

En este artículo

You can enable validity checks for individual repositories through repository settings. Validity checks verify whether detected secrets are still active, helping you prioritize remediation efforts. For information about what validity checks are and how they work, see Validity checks.

For a list of which secret patterns support validity checks, see Patrones de análisis de secretos admitidos.

Enabling validity checks

To enable validity checks from the UI:

es-ES: 1. En GitHub, navegue hasta la página principal del repositorio.

  1. Debajo del nombre del repositorio, haz clic en Settings. Si no puedes ver la pestaña "Configuración", selecciona el menú desplegable y, a continuación, haz clic en Configuración.

    Captura de pantalla de un encabezado de repositorio en el que se muestran las pestañas. La pestaña "Configuración" está resaltada con un contorno naranja oscuro.

  2. En la sección "Security" de la barra lateral, haz clic en Advanced Security. 1. En Secret scanning, selecciona la casilla situada junto a "Comprobar automáticamente si un secreto es válido mediante el envío al asociado correspondiente".

  3. Scroll to the bottom of the page and click Save changes.

Nota:

You can also use the REST API to enable validity checks for partner patterns for your repository. For more information, see Puntos de conexión de la API de REST para repositorios.

Alternatively, organization owners and enterprise administrators can enable the feature for all repositories in the organization or enterprise. For more information, see Creating a custom security configuration and Creating a custom security configuration for your enterprise.

Further reading