How-tos for leak prevention
Learn how to prevent future secret leaks with GitHub's push protection.
Enabling push protection for your repository
With push protection, secret scanning blocks contributors from pushing secrets to a repository and generates an alert whenever a contributor bypasses the block.
Managing push protection for users
You can control GitHub's ability to block your pushes that may contain secrets.