Secret scanning w/ push protection is now available! Block pushes containing secrets from ever going through in the first place! (Yes, we are using this internally!)
Proactively prevent secret leaks with GitHub Advanced Security secret scanning | The GitHub Blog
Protect against secret leaks with secret scanning’s new push protection feature.