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!)
https://github.blog/2022-0...
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.