cd /news/ai-tools/secret-scanning-on-demand-for-develo… · home › topics › ai-tools › article
[ARTICLE · art-171054] src=github.blog ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Secret scanning on demand for developers and agents

GitHub released a public preview that lets Copilot's security review specialist run GitHub secret scanning on code changes before they are merged, available in Copilot CLI, the Copilot app, Copilot SDK integrations and Copilot code review. The feature detects more than 500 secret types from GitHub's catalog built with 150+ industry partners, and adds a GitHub fine-tuned model that reads surrounding code to catch credentials without a recognizable format, such as passwords and credentials in connection strings. Secret scanning is off by default and must be enabled per tool; scans consume AI credits under the Secret Protection AI Credit SKU, and the review checks changes only, not repository history.

by read3 min views3 publishedNov 17, 2026
Secret scanning on demand for developers and agents
Image: GitHub Changelog

Summary #

Copilot's security review specialist now runs GitHub secret scanning, so developers and agents can catch secrets in code changes before they're merged.

Secret scanning should keep pace with the way you build software, whether you write code yourself or work with an AI agent. Copilot’s security review specialist now runs GitHub secret scanning, so developers and agents can catch secrets in code changes before they’re merged.

You can use the public preview in Copilot CLI and Copilot app sessions, through Copilot SDK integrations, and in Copilot code review.

What’s new

Copilot security review already looks for exposed secrets as part of its LLM-based review. Once you opt in, it also runs GitHub’s secret scanning detectors alongside that analysis.

  • Provider patterns: Detect more than 500 secret types from GitHub’s growing catalog, built with150+ industry partners through thesecret scanning partner program .
  • GitHub’s fine-tuned model for secret detection: Not every credential has a recognizable format. The model reads surrounding code to identify likely secrets, including passwords and credentials in connection strings.

The review checks your changes for secrets. It doesn’t search repository history.

Secret scanning in your workflow

  • Review changes as you work. In Copilot CLI and the Copilot app, ask your coding agent to run thesecurity-review specialist. Use its findings to make fixes and request another review, or run/security-review yourself on your changes or an agent’s work.
  • Build checks into your own agents. With the Copilot SDK, your agent can request a security review before returning its changes, without maintaining separate secret detectors.
  • Catch secrets during pull request review. Copilot code review can flag secrets on added lines, including changes that weren’t checked during development, so authors and reviewers can address them before merge.

Enable secret scanning

Secret scanning is off by default. Until you opt in, security review uses its existing LLM-based detection only.

Enable secret scanning for your tool, then request a review:

Tool Enable secret scanning Run a scan
Copilot CLI In an interactive session, run /settings aiSecretDetection on . Delegate to security-review through thetask tool (agent_type: "security-review" ), or run/security-review manually.
Copilot app In Settings > Experimental , turn onAI secret detection . Delegate to security-review throughtask , or run/security-review manually.
Copilot SDK integrations When you create a session, set the SECURITY_REVIEW_FINE_TUNED_MODEL feature flag totrue . Delegate from the session agent, or call session.rpc.tasks.startAgent withagentType: "security-review" .
Copilot code review In the repository’s Settings > Copilot > Code review , turn onSecret scanning underSecurity . Request a review from Copilot on the pull request, or set up automatic reviews.

Availability and billing

In the tools listed above, if you can use Copilot security review or Copilot code review today, you can use secret scanning. No additional plan is required. Scans consume AI credits under the Secret Protection AI Credit SKU.

Learn more and share feedback

Learn more about secret scanning and supported secret scanning patterns.

For Copilot, see how to [run a security review in the app](https://docs.github.com/copilot/how-tos/github-copilot-app/agent-sessions?utm_source=secret-scanning-changelog-learn-more-docs-link-4&utm_medium=changelog&utm_campaign=ignite-nov-2026#using-security-review-in-app-sessions) or [request a code review](https://docs.github.com/copilot/how-tos/use-copilot-agents/use-code-review?utm_source=secret-scanning-changelog-learn-more-docs-link-5&utm_medium=changelog&utm_campaign=ignite-nov-2026).

Share your feedback in the [community discussion](https://gh.io/community-secret-scanning).
── more in #ai-tools 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/secret-scanning-on-d…] indexed:0 read:3min 2026-11-17 · —