Dev Practice

Check Whether Turning On GitHub AI Secret Detection in Push Protection Costs Extra

Key Takeaway

Existing AI-detected secret alerts carry no extra charge, while the new push protection and the Copilot /security-review secret check are opt-in and use GitHub AI credits, per GitHub's October 7, 2026 announcement.

A brass lock and key on an oak desk by a window, a sage mug and a vase, a blank paper document and a card

What does the new model look for?

According to the GitHub announcement, this is a model GitHub tuned for secret detection. It reads the surrounding code to find values that are likely credentials, and it does not generate code or text. A notable point is that it also targets passwords that have no recognizable format, as tokens do.

Values with no fixed format are easy to miss with pattern search. So you can understand it as a context-reading model added for those cases.

Which features are free and which use credits?

The announcement splits on the three points below. The date checked is 2026-10-11.

FeatureStatusCost
AI-detected secret alertsExisting AI-detected password alerts switch to the new model automaticallyIncluded in GitHub Secret Protection and GitHub Advanced Security, no extra charge
AI detection in push protectionPrivate previewOptional, uses AI credits
Secret check in Copilot /security-reviewPrivate preview plannedOptional, AI credits added on top of existing usage

Source: GitHub Changelog, published 2026-10-07, checked 2026-10-11.

Per the announcement, credit usage starts within the next few weeks. The exact start date is not given. It also says billing starts only after you join the preview and turn the feature on. It says organizations already in the push protection private preview will be charged if they do not turn it off before billing starts, so check this part first.

What changes when you turn it on in push protection?

The push protection documentation explains it as a feature that blocks secrets before they enter a repository. Besides command-line pushes, commits from the web interface, file uploads, and REST API requests are also scanned. With write access, you can bypass it by giving a reason, and the bypass is recorded in alerts and the audit log.

With AI detection added, credentials with no fixed format can also be caught at push time. The announcement says this check can use credits even when it does not block a push. So the more pushes a repository gets, the more you should estimate usage in advance.

  • Usage is billed to the organization that owns the repository, not deducted from an individual user's credits.
  • The exception is repositories in the personal namespace of an enterprise managed user (EMU). In that case the pushing user's credits are used.
  • Usage appears under the Secret Protection AI Credits item in AI usage insights.

How is Copilot /security-review different?

/security-review is a command that reviews your changes before you commit or push, in a Copilot CLI or Copilot app session. It only reads and does not modify files. A check by the secret classification model will be added to it soon.

This check is off by default and running the command does not turn it on. The announcement also says an agent must not turn on features that use credits, or change policies and budgets, without human approval. Teams that put this command into automation would do well to turn that sentence into an operating rule. That is a suggestion.

You can use this check even without a Secret Protection license. Instead, usage is charged to the billing account of the active Copilot plan, and the item is reported under Secret Protection.

Which plans can my organization use it on?

Plan / platformAI detection in push protection/security-review secret checkExisting AI-detected alerts
Team and Enterprise Cloud on github.comRequires paid Secret Protection or Advanced SecurityDepends on the Copilot plan and admin policySwitched to the new model
Enterprise Cloud with data residency (ghe.com)Planned when purchased as a paid add-onSupported on Copilot Business and EnterpriseNot mentioned in the announcement
Enterprise ServerNot in this releaseNot in this releasePublic preview in 3.23
Individual Copilot plansNot mentioned in the announcementAvailable on Pro, Pro+, Max, Free, and Student, subject to access controls and credit conditionsNot mentioned in the announcement

Source: GitHub Changelog, published 2026-10-07, checked 2026-10-11.

Copilot Business and Enterprise can use the /security-review check, but that does not stand in for the Secret Protection license push protection needs. The announcement adds that it varies by invitation and admin policy.

What should I settle before turning it on?

Administrators can turn the new features off by policy and also set an AI credits budget. Turning a feature on does not lift these controls. However, a budget alert does not stop usage. To make usage stop at the limit, set it yourself, such as Stop usage when budget limit is reached, wherever that setting is available.

Here is an order for checking. This is also a suggestion.

  1. Check whether your organization has purchased Secret Protection or Advanced Security, and which plan it is on.
  2. See whether you are already in the push protection private preview, and decide whether to keep using it.
  3. Create the budget limit and the stop-at-limit setting first, then turn the feature on.
  4. If anything in your automation calls /security-review, write down who has the authority to turn on the secret check.
A developer editor at a light oak desk holding a pencil and looking at the laptop screen, with a notebook, a key, and a mug on the desk

A single announcement mentions both private preview and public preview. Before applying anything, reopen the original announcement to see which stage push protection is in.

Frequently Asked Questions

Do existing AI-detected alerts get a new charge?

No. GitHub says AI-detected secret alerts remain included in GitHub Secret Protection and GitHub Advanced Security at no extra charge.

Can anyone turn on push protection right now?

No. At the time of the announcement, AI secret detection in push protection is introduced as a private preview. It targets GitHub Enterprise Cloud or GitHub Team customers who use paid Secret Protection or Advanced Security.

Does running `/security-review` automatically turn on the credit-consuming check?

No. The new secret check is off by default, and running the command does not turn it on. You have to opt in separately where your account policy allows it.

Sources & Verification Date

  1. Purpose-built model for leaked secret detection (GitHub Changelog, 2026-10-07) · Verified
  2. About push protection (GitHub Docs) · Verified

All materials have been verified from official announcements and may have changed since verification.