How-tos for leak prevention
Prevent exposed secrets from reaching your repositories and protected branches.
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.