GitHub details a ModernBERT classifier for secret protection
At publication, the push-protection feature was in private preview with Secret Protection eligibility requirements; post-push alerts have separate cost treatment.
GitHub describes a ModernBERT classifier that examines candidate secrets in their surrounding context without generating code or prose. The article frames it as a way to expand protection while balancing detection precision, latency, throughput and cost. The performance and cost assessments are GitHub’s claims, not independent measurements by this publication.
At publication, the new push-protection feature was in private preview. GitHub said access would expand later that month to organizations with GitHub Secret Protection on Enterprise Cloud and GitHub Teams, consuming AI credits. This is a qualified rollout, not a promise that all users on those plans automatically receive the feature.
For post-push detection, GitHub says organizations already using AI secret detection will be updated to the model, with alerts included in their secret-scanning purchase at no additional cost. The article also describes adding the classifier to security-review commands in the Copilot CLI and Copilot App; rollout and billing should not be generalized across these different paths.
Sources and accountability
Editorial review completed.