Push protection for repositories and organizations - GitHub Enterprise Server 3.6 Docs

You can use secret scanning to prevent supported secrets from being pushed into your organization or repository by enabling push protection.