{"meta":{"title":"How-tos for detecting secret leaks","intro":"Learn how to use GitHub's tools to detect secret leaks.","product":"Security and code quality","breadcrumbs":[{"href":"/en/code-security","title":"Security and code quality"},{"href":"/en/code-security/how-tos","title":"How-tos"},{"href":"/en/code-security/how-tos/secure-your-secrets","title":"Secure your secrets"},{"href":"/en/code-security/how-tos/secure-your-secrets/detect-secret-leaks","title":"Detect secret leaks"}],"documentType":"subcategory"},"body":"# How-tos for detecting secret leaks\n\nLearn how to use GitHub's tools to detect secret leaks.\n\n## Links\n\n* [Enabling secret scanning for your repository](/en/code-security/how-tos/secure-your-secrets/detect-secret-leaks/enable-secret-scanning)\n\n  You can configure how GitHub scans your repositories for leaked secrets and generates alerts.\n\n* [Enabling secret scanning for generic patterns](/en/code-security/how-tos/secure-your-secrets/detect-secret-leaks/enabling-secret-scanning-for-generic-patterns)\n\n  You can enable secret scanning to detect additional potential secrets at the repository and organization levels.\n\n* [Enabling generic secret detection for AI-detected secrets](/en/code-security/how-tos/secure-your-secrets/detect-secret-leaks/enabling-secret-scanning-for-ai-detected-secrets)\n\n  You can enable generic secret detection for your repository or organization. Alerts for generic secrets, such as passwords, are displayed in a separate list on the secret scanning alerts page."}