See for example: https://docs.github.com/en/code-security/secret-scanning/sec...
They don't appear to check validity though? I haven't tested it so maybe someone else can double check.