Last updated: December 4, 2026
Copilot code review can now scan dependencies in pull requests. Since December 3, 2026, two public preview scans flag risky packages: Dependency vulnerabilities and License compliance. Both are off by default, are turned on under Settings, Copilot, Code review, and add to the AI credits a review uses.
Contents
- What is new in Copilot code review
- The two scans at a glance
- How to turn on dependency scans
- What the scans check, and what they skip
- Plans, AI credits and costs
- Built-in license scan vs. open source license compliance
- Practical workflows and tips
- Limits and caveats
- Frequently asked questions
What is new in Copilot code review
GitHub’s December 3 changelog adds supply chain checks to Copilot code review. When a pull request adds or updates a package, Copilot can now leave a review comment if that package has a known vulnerability or an unusual license, so you can fix it before merging (GitHub Changelog).
See also our guides to Copilot code review Adaptive effort and the Copilot code review API..
The two scans at a glance
The details below come from the changelog and the Copilot code review documentation (changelog) (Copilot code review docs):
| Dependency vulnerabilities | License compliance | |
|---|---|---|
| What it checks | Added or updated packages against GitHub-reviewed advisories in the GitHub Advisory Database | Each added or updated package’s license against a built-in set of commonly allowed open source licenses |
| What a comment includes | Advisory names, severity and the first patched version when one exists | A note that the license is outside the allowed set |
| Not reported | Low-severity advisories | Packages without license information |
| Ecosystems | npm, pip, Maven, NuGet, Composer, Go modules, Rust, RubyGems, pub, plus Erlang and Swift | npm, pip, Maven, NuGet, Composer, Go modules, Rust, RubyGems, pub |
| Skipped when | Scan is off for the repository | A ruleset on the base branch requires license compliance results before merging |
| Default | Off | Off |
How to turn on dependency scans
Organization settings set the default, and a repository administrator can override either scan for one repository. If preview features are restricted, an organization or enterprise owner must enable them first (configuration docs).
- Open your organization on GitHub and click Settings.
- In the sidebar, under “Code, planning, and automation,” click Copilot, then Code review.
- Under Security, turn on Dependency vulnerabilities, License compliance, or both. This becomes the default for repositories in the organization.
- To change one repository, open the repository’s Settings, go to Copilot, then Code review, and switch either scan under Security.
- Make sure Copilot actually reviews pull requests: request it as a reviewer, or add a branch ruleset with Automatically request Copilot code review.
- Open a test pull request that adds a package to a manifest such as
package.jsonand check for comments on the added line.
Once a repository setting is changed, the repository keeps its own value even if the organization default changes later (configuration docs). The scans are not among the settings the docs list as manageable through the REST and GraphQL APIs, so set them in the web UI.
What the scans check, and what they skip
The scans read supported package manager manifests such as package.json, pyproject.toml and go.mod (Copilot code review docs). Coverage rules worth knowing:
- Direct changes: packages the pull request adds or updates in a manifest are checked.
- Transitive dependencies: checked only when the pull request adds or changes them in a lockfile.
- Lockfile-only changes: not scanned. A pull request that only regenerates a lockfile gets no dependency findings.
- Placement: findings appear as review comments on the added manifest lines.
- Approval: if a scan cannot check a package, Copilot might not approve the pull request.
Plans, AI credits and costs
The scans are available on Copilot Pro, Pro+, Max, Business and Enterprise, and they add to the AI credits a review uses (changelog). GitHub does not publish a separate price for them. Its estimates for a single review are (Copilot code review docs):
| Review effort | Typical range per review | Approximate average |
|---|---|---|
| Lite | $0.05 to $1 | $0.25 |
| Balanced (default) | $0.25 to $5 | $1.50 |
| Max | $1.50 to $25 | $10 |
These estimates exclude GitHub Actions minutes, and costs rise with pull request size and custom instructions. If no billing choice has been saved, reviews for members with paid Copilot licenses are billed to the organization that owns the repository; admins can choose Member instead, in which case a review fails once the member’s quota runs out (configuration docs) (Copilot code review docs).
Built-in license scan vs. open source license compliance
The built-in license scan is a quick signal, not a policy engine. For enforcement, GitHub points to open source license compliance (changelog), which works differently (license compliance docs):
- Who can use it: GitHub Enterprise Cloud organizations; enforcing it on a repository needs a GitHub Code Security license.
- Policy: you define allowed licenses from a built-in list or by SPDX identifier, with exceptions approved by an Enterprise Open Source License Manager.
- Enforcement: branch rulesets with “Requires license compliance results before merging” block noncompliant pull requests in Active mode, or annotate only in Evaluate mode.
- Coverage: uses dependency graph data, including transitive dependencies.
If such a ruleset applies to the base branch, Copilot’s license scan does not run, so you will not get duplicate license comments.
Practical workflows and tips
- Pilot first: enable the scans on a few active repositories before setting the organization default.
- Pair with effort settings: since scans add AI credits, set a Maximum review effort in Copilot code review settings to cap spending, or use Adaptive so Copilot picks the level from each pull request’s complexity and risk.
- Act on the patched version: each vulnerability comment names the first patched version when one exists, so the usual fix is to bump to that version in the same pull request and re-request a review.
- Remember approvals: if you let Copilot approvals count toward merge requirements, an unscannable package can mean no Copilot approval, so keep a human reviewer in the loop.
For more context in reviews, see our guides to GitHub Copilot connectors and, for a competing approach, Claude Code’s REVIEW.md in /code-review.
Limits and caveats
- Preview status: both scans may change before general availability (changelog).
- GitHub.com pull requests: the docs describe the scans for pull request reviews on GitHub.com (configuration docs).
- No custom license list: the license scan cannot be pointed at your own allowlist.
Frequently asked questions
What are Copilot code review dependency scans?
They are two optional checks GitHub added to Copilot code review on December 3, 2026. Dependency vulnerabilities flags packages with GitHub-reviewed advisories, and License compliance flags licenses outside a built-in allowed set. Both comment on the pull request that adds or updates the package.
Which Copilot plans include the dependency scans?
Copilot Pro, Pro+, Max, Business and Enterprise. The scans are in public preview, run on GitHub.com pull requests and are off by default, so an organization owner or repository administrator has to turn them on.
Do the scans cost extra?
They do not have a separate price, but GitHub says they add to the AI credits a review uses. A review is estimated to average $0.25 at Lite, $1.50 at Balanced and $10 at Max effort, before GitHub Actions minutes.
Does the license scan use my enterprise license policy?
No. It checks against GitHub’s built-in set of commonly allowed open source licenses. To enforce your own policy, use open source license compliance on GitHub Enterprise Cloud, which needs a GitHub Code Security license and branch rulesets.
Why did Copilot not flag a vulnerable package?
Common reasons: the scans are off for that repository, the advisory is low severity, the change touched only a lockfile, the ecosystem is not supported, or the package is a transitive dependency the pull request did not add or change in a lockfile.
Sources
- Copilot code review: Dependency vulnerability and license compliance scans (GitHub Changelog, December 3, 2026)
- Configuring code review by GitHub Copilot (GitHub Docs)
- GitHub Copilot code review (GitHub Docs)
- About open source license compliance (GitHub Enterprise Cloud Docs)
Image: GitHub mark (Octicons) by GitHub, MIT license, via Wikimedia Commons. GitHub and Copilot are trademarks of GitHub, Inc.