GitHub now blocks Anthropic API keys at push, by default

A new ModernBERT classifier made push protection cheap enough to catch secrets before they land — plus new Cloudsmith and Salesforce detectors.

Nowline OCT 14 5:00 PM banner

Top AI stories from the last hour

Top AI stories from the last hour

Copy markdown

  • Two Anthropic key types, auto-blocked at push

    anthropic_service_api_key and anthropic_user_api_key are now in GitHub's push-protection defaults, so any repo with secret scanning on — including free public repos — rejects commits that carry them. It's a default, not opt-in: a key sitting in a committed .env or a test fixture now fails the push until you pull it out.

  • The ModernBERT classifier that made it cheap enough

    GitHub swapped the LLM stage of its secret pipeline for a fine-tuned ModernBERT model that reads each regex candidate in context — file path, variable names, surrounding code — and drops placeholders and test fixtures. It reports 11.5% higher owner-weighted acceptance, 86% lower median post-push scan time, and over 98% lower serving cost. That speed is why generic secret detection could finally move into push protection, catching leaks before they ever reach the repo.

  • Cloudsmith and Salesforce join the net

    New detectors also cover Cloudsmith API keys and Salesforce Marketing Cloud OAuth2 tokens, and Salesforce is now a secret-scanning partner — tokens leaked in public repos get forwarded to the issuer to revoke. The catch: both are detected, not blocked at push by default. Only the two Anthropic key types made the default push-protection list.