GitHub has added opt-in secret scanning to Copilot security reviews across CLI and app sessions, SDK integrations and pull-request code review. The public preview, released on 17 November, is off by default. It reviews code changes and consumes AI credits.
Copilot’s security review already used LLM-based secret detection. Enabling the preview adds GitHub’s secret-scanning detectors alongside that existing detection. VS Code support is excluded from this release.
What the added detectors look for
GitHub says the added scanning combines provider patterns covering more than 500 secret types, developed with over 150 partners, with a fine-tuned model that uses surrounding code to identify less recognizable secrets. Examples include passwords and credentials embedded in connection strings.
Those are GitHub’s capability claims. The official sources reviewed for this article provide no measured detection or false-negative rates for this Copilot integration, so a review without findings should not be treated as proof that code contains no credentials.
The review covers changes rather than repository history. In pull-request code review, it flags secrets on added lines. That makes the feature relevant when checking newly written or AI-generated code, while leaving older credentials elsewhere in a repository outside this review’s scope.
How to enable it in each supported workflow
GitHub’s release instructions specify separate setup for each surface:
- Copilot CLI: In an interactive session, run
/settings aiSecretDetection on, then/security-review. Task delegation withagent_type: "security-review"is also supported. - Copilot app: Open Settings > Experimental > AI secret detection and enable it. Then use
/security-reviewor delegate a security-review task. - Copilot code review: Open the repository’s Settings > Copilot > Code review > Security > Secret scanning. Enable scanning, then request a Copilot pull-request review or configure automatic reviews.
- Copilot SDK: Set
SECURITY_REVIEW_FINE_TUNED_MODELto true when creating the session and configure GitHub authentication on the SDK client. Start the review through session-agent delegation orsession.rpc.tasks.startAgentwithagentType: "security-review".
For SDK integrations, GitHub authentication is a separate requirement from access to a model provider. A provider API key alone is insufficient. GitHub gives a token obtained through GitHub CLI sign-in as an example; tokens issued by an integration’s own OAuth app are currently unsupported. GitHub clarified these authentication requirements in an 18 November update to the announcement.
No additional plan still means credit consumption
GitHub says no additional plan is required for the Copilot experiences listed in the announcement. Scans nevertheless consume AI credits under the Secret Protection AI Credit SKU.
The reviewed sources do not establish a per-scan price for this feature. Broader Copilot code-review cost estimates should not be used as its scanning rate. These availability, setup and billing details were checked on 24 November 2026 while the feature remained in public preview.
Keep history scanning and push protection in the workflow
GitHub’s separate repository secret scanning scans the entire Git history across all branches. It has its own access and product rules.
Push protection acts when someone attempts a push and can block detected secrets before they enter the repository, subject to supported patterns, configuration and bypass mechanisms. Copilot’s review supplies findings for developers to act on. Use its changed-code review alongside the controls needed to inspect repository history and block secret-bearing pushes.
