{"meta":{"title":"关于防止泄漏的操作指南","intro":"了解如何在不同环境中使用 GitHub 的推送保护。","product":"安全性和代码质量","breadcrumbs":[{"href":"/zh/code-security","title":"安全性和代码质量"},{"href":"/zh/code-security/how-tos","title":"How-tos"},{"href":"/zh/code-security/how-tos/secure-your-secrets","title":"保护机密"},{"href":"/zh/code-security/how-tos/secure-your-secrets/work-with-leak-prevention","title":"与防止泄漏合作"}],"documentType":"subcategory"},"body":"# 关于防止泄漏的操作指南\n\n了解如何在不同环境中使用 GitHub 的推送保护。\n\n## Links\n\n* [从命令行使用推送保护](/zh/code-security/how-tos/secure-your-secrets/work-with-leak-prevention/push-protection-on-the-command-line)\n\n  了解用于在 GitHub 在更改中检测到机密时从命令行取消阻止推送到 secret scanning 的选项。\n\n* [通过 GitHub UI 使用推送保护功能](/zh/code-security/how-tos/secure-your-secrets/work-with-leak-prevention/push-protection-in-the-github-ui)\n\n  了解当 secret scanning 在你的更改中检测到机密时，解封提交的选项。"}