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. Informationen zu unserem Partnerprogramm findest du unter 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.
Hinweis
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
Hinweis
You can also use the REST API to enable validity checks for partner patterns for your repository. For more information, see REST-API-Endpunkte für Repositorys.
-
Navigieren Sie auf GitHub zur Hauptseite des Repositorys.
-
Klicke unter dem Repositorynamen auf Settings. Wenn die Registerkarte „Einstellungen“ nicht angezeigt wird, wähle im Dropdownmenü die Option Einstellungen aus.

-
Klicke im Abschnitt „Security“ der Randleiste auf Advanced Security.
-
Klicke unter „Secret Protection“ rechts neben „Validity checks“ auf Enable.
-
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 Erstellen einer benutzerdefinierten Sicherheitskonfiguration. For more information on enabling at the enterprise-level, see Erstellen einer benutzerdefinierten Sicherheitskonfiguration für dein Unternehmen.