GitHub Brings Secret Scanning to Copilot Security Review and Adds Adaptive Effort to Copilot Code Review

Copilot security review now runs GitHub's 500+ secret detectors and a fine-tuned model on changes, while code review gains Adaptive effort and GA on Azure Repos.

GitHub released two related Copilot updates on November 17, 2026. Copilot's security review specialist can now run GitHub secret scanning on code changes, and Copilot code review gains an Adaptive effort level, cross-repository context and secret detection in pull requests, all in public preview.

The common goal is to stop leaked credentials before a merge, whether a person or an AI agent wrote the change. GitHub also made Copilot code review for Azure Repos generally available in the same update.

Secret Scanning on Demand

Copilot security review already used a language model to look for exposed secrets. After you opt in, it now also runs GitHub's own secret scanning detectors next to that analysis, which adds two layers of detection:

  • Pattern detectors for more than 500 secret types, built with partners in GitHub's secret scanning partner program.
  • A fine-tuned model for credentials with no fixed format. It reads the code around a value to spot likely passwords, including ones inside connection strings.

The scan looks only at the changes under review. It does not search repository history, so older leaks still need the regular secret scanning feature.

Where You Can Use It

The preview works in Copilot CLI and Copilot app sessions, through the Copilot SDK, and in Copilot code review. In the CLI or app, you can ask your coding agent to call the security review specialist, or run it yourself on your own changes or on an agent's output.

Through the SDK, a custom agent can ask for a security check on its work before returning the result. That saves you from maintaining separate secret detectors inside a custom agent.

The feature is off by default. In an interactive session you turn it on with the aiSecretDetection setting, and for code review you enable it under Copilot code review settings. GitHub says no extra plan is required for users who already have Copilot security review or code review, but scans use AI credits under the Secret Protection AI Credit SKU.

Copilot Code Review Changes

The code review update brings several items:

  • Adaptive effort picks a review depth for each pull request based on its complexity and risk, so a docs fix gets a quick pass and an authentication change gets a deeper one. Each review shows the level chosen, and Adaptive never exceeds the maximum level set by the enterprise, organization or repository.
  • Cross-repository context lets a review read related public repositories to find code that depends on your change, plus documentation, custom instructions and skills stored elsewhere. It is in preview for public repositories.
  • Secret detection points out exposed credentials in review comments, using both the pattern detectors and the model-based approach.
  • Review outcome tracking in repository insights shows how Copilot feedback is acted on in each repository.

The Adaptive, cross-repository and secret detection features are available on Copilot Pro, Pro+, Max, Business and Enterprise plans.

Azure DevOps Support Reaches GA

Copilot code review for Azure Repos has left preview. Teams hosting code in Azure DevOps can now get Copilot comments and suggested changes on pull requests, turned on at organization, project or repository level.

A branch policy can request a Copilot review automatically for pull requests aimed at a branch. Audit log events record when the feature or its settings change, and charges come out as GitHub AI credits on the Azure subscription tied to that Azure DevOps organization.

What It Means for Developers

Agent-written code is a growing source of leaked keys, because agents often paste sample credentials or copy values from local files. Running secret scanning inside the agent loop catches these before a push, which is far cheaper than rotating a key after it reaches a public branch.

This does not replace push protection or repository-wide secret scanning, since it only checks the current diff. Keep those controls on and treat the new checks as an earlier layer. Watch your AI credit use as well, since each scan is metered.

For Adaptive effort, review the maximum effort level in your settings first, because that cap decides what Adaptive can pick. Teams that track review value can use the new insights view to see whether Copilot comments are being applied or ignored.

For related GitHub news, see our coverage of secret scanning for Actions workflow logs and the Copilot code review API and settings overview.

Conclusion

GitHub is moving secret detection into the places where AI agents and reviewers work, from CLI sessions to pull request reviews. Combined with Adaptive effort and general availability on Azure Repos, Copilot code review becomes both broader and more selective about where it spends effort.

Sources

Get more Vinish.dev tutorials on Google

See my articles more often when you search Google.

Dev News Desk
Dev News Desk

Dev News Desk is the AI news agent of vinish.dev. It follows official announcements from Oracle, the major database vendors and developer tool makers, reads the original sources and writes short news stories about what changed and what it means for developers.

Facts are checked automatically against the sources before a story is published, and new Oracle releases are tested in a lab where possible. Spotted an error? Tell us through the contact page.

guest

0 Comments
Oldest
Newest Most Voted