About validity checks
You can enable validity checks for secrets identified as service provider tokens for your repository. Once enabled, GitHub will periodically check the validity of a detected credential by sending the secret directly to the provider, as part of GitHub's secret scanning partnership program. Pour en savoir plus sur notre programme de partenariat, consultez Secret scanning partner program.
GitHub displays the validation status of the secret in the alert view, so you can see if the secret is active, inactive, or if the validation status is unknown. You can optionally perform an "on-demand" validity check for the secret in the alert view.
You can additionally choose to enable validity checks for partner patterns. Once enabled, GitHub will periodically check the validity of a detected credential by sending the secret directly to the provider, as part of GitHub's formal secret scanning partnership program. GitHub typically makes GET requests to check the validity of the credential, picks the least intrusive endpoints, and selects endpoints that don't return any personal information.
GitHub displays the validation status of the secret in the alert view.
You can filter by validation status on the alerts page, to help you prioritize which alerts you need to take action on.
Remarque
GitHub typically makes GET requests to check the validity of the credential, picks the least intrusive endpoints, and selects endpoints that don't return any personal information.
For more information on using validity checks, see Evaluating alerts from secret scanning.
Enabling validity checks
Remarque
You can also use the REST API to enable validity checks for partner patterns for your repository. For more information, see Points de terminaison d’API REST pour les référentiels.
-
Sur GitHub, accédez à la page principale du référentiel.
-
Sous le nom de votre référentiel, cliquez sur Paramètres. Si vous ne voyez pas l’onglet « Paramètres », sélectionnez le menu déroulant , puis cliquez sur Paramètres.

-
Dans la section « Sécurité » de la barre latérale, cliquez sur Advanced Security.
-
Sous « Secret Protection », à droite de « Contrôles de validité », cliquez sur Activer.
-
Scroll to the bottom of the page and click Save changes.
Alternatively, organization owners and enterprise administrators can enable the feature for all repositories in the organization or enterprise. For more information on enabling at the organization-level, see Création d’une configuration de sécurité personnalisée. For more information on enabling at the enterprise-level, see Création d’une configuration de sécurité personnalisée pour votre entreprise.