GitHub’s Copilot security review can now run GitHub secret scanning over a set of code changes, so a developer or a coding agent can catch a leaked key before the work is merged. The option entered public preview on November 17, 2026, and it reaches four places at once: Copilot CLI, Copilot app sessions, integrations built on the Copilot SDK, and Copilot code review on pull requests. It is off by default, according to GitHub’s changelog.

    The review command itself is young. /security-review arrived in Copilot CLI on June 10, 2026 as a public preview, and the note published that day described a Copilot-driven scan that did not rely on code scanning, Dependabot or secret scanning. The Copilot app picked up the same command on July 14, 2026, and on October 7, 2026 the company published plans to bring a fine-tuned secret detection model to security reviews, push protection and secret scanning alerts. Secret scanning is the older tool by years, with push protection in beta for Advanced Security customers back in April 2022. Anyone who has pushed a key and felt their stomach drop a second later will read on with some sympathy.

    GitHub Copilot Security Review Adds On-Demand Secret Scanning In Public Preview Across CLI, App, SDK And Code Review

    Until this week the review hunted for exposed secrets with LLM-based analysis alone. After opt-in, it runs the secret scanning detectors alongside that analysis, covering more than 500 secret types listed in the GitHub Docs pattern reference and built with over 150 partners, the same catalog that recently gained a detector for Cloudflare Access service tokens. A fine-tuned model reads the surrounding code to find credentials with no recognizable format, such as a password inside a connection string. The review checks the current changes only. It does not search repository history.

    A command once defined by what it left out

    In June the security review was introduced partly by listing the tools it did not call. Five months on, the detectors that guard a push also run at the review step, and an agent can request them on its own work before handing anything back. For teams building on the SDK, that removes one reason to maintain a homegrown detector. The limits are just as plain. A key buried in an old commit is still a job for repository-level scanning, and because each scan spends AI credits, teams will want to decide where in an agent’s loop the check runs.

    Switching it on in each tool

    In Copilot CLI, run /settings aiSecretDetection on in an interactive session, then run /security-review or ask the agent to hand off to the security-review specialist. In the Copilot app, which recently brought GitHub Enterprise Server support to general availability, the switch is AI secret detection under Settings, then Experimental. SDK integrations set the SECURITY_REVIEW_FINE_TUNED_MODEL feature flag to true when creating a session and can start the review with session.rpc.tasks.startAgent and an agentType of security-review.

    For pull requests, a repository admin turns on Secret scanning under Security in the Copilot code review settings, after which reviews flag secrets on added lines. No additional plan is required for anyone who can already use Copilot security review or Copilot code review in these tools, and scans draw AI credits under the Secret Protection AI Credit SKU. The changelog gives no date for general availability. Organizations can weigh the preview beside other recent additions, such as the option to bulk-start AI Scan on up to 20 repositories.

    Grace is a technical SEO specialist and web developer who writes about structured data, metadata, and site configuration for Webcode Tools. She helps websites improve how they appear in search results and on social platforms, and her guides explain the code behind it in a straightforward, practical way.