--- title: Working with secret scanning and push protection shortTitle: Work with secret scanning allowTitleToDifferFromFilename: true intro: 'Avoid leaking sensitive data by blocking pushes containing tokens and other secrets.' product: '{% data reusables.gated-features.secret-scanning %}' versions: fpt: '*' ghes: '*' ghec: '*' topics: - Secret scanning - Secret Protection - Repositories children: - /remediating-a-leaked-secret - /push-protection-for-users - /working-with-push-protection-from-the-command-line - /working-with-push-protection-from-the-rest-api - /working-with-push-protection-in-the-github-ui - /working-with-push-protection-and-the-github-mcp-server redirect_from: - /code-security/secret-scanning/working-with-push-protection - /code-security/secret-scanning/pushing-a-branch-blocked-by-push-protection ---