# Copilot code review now flags risky dependencies: 2 switches to turn on, the cost, and 5 gaps

> Copilot code review can now flag vulnerable and unusually licensed packages in a pull request. Both scans are off by default, in preview, and add to a review's AI credits.

Published 2026-12-04 · https://smarterthanus.ai/copilot-code-review-dependency-license-scans/

## TL;DR

- Copilot code review has **2** new scans, dependency vulnerabilities and license compliance, in public preview since 3 December 2026.
- Both are **off by default**: turn them on under Settings > Copilot > Code review, per organization or per repository.
- They add to the AI credits a review uses; GitHub gives no separate price, and a default Balanced review already averages **$1.50**.
- Low-severity advisories, lockfile-only changes and packages with no license data are not flagged, and the license list is GitHub's, not your company's.

Copilot code review can now leave a comment when a pull request adds or updates a package with a known vulnerability or a license outside a common open source list. Both scans arrived in public preview on [3 December 2026](https://blog.github.com/changelog/2026-12-03-copilot-code-review-dependency-scans/), work on Copilot Pro, Pro+, Max, Business and Enterprise, and are **off by default**. They don't have their own price: GitHub says they "add to the AI credits a review uses", without saying by how much.

## What the two scans check

**Dependency vulnerabilities.** When a pull request adds or updates a package, Copilot checks it against the advisories GitHub has reviewed in the GitHub Advisory Database. Each comment names the advisory, its severity and the first patched version when one exists. Low-severity advisories are not reported.

**License compliance.** Copilot checks the license of each added or updated package against a built-in set of commonly allowed open source licenses and comments when one falls outside it. GitHub doesn't publish that list in the changelog.

Per [GitHub's code review docs](https://docs.github.com/en/copilot/concepts/agents/code-review), the scans read manifests such as `package.json`, `pyproject.toml` and `go.mod`, and findings appear as review comments on the added manifest lines.

| Ecosystem | Vulnerability scan | License scan |
|---|---|---|
| npm, pip, Maven, NuGet, Composer | Yes | Yes |
| Go modules, Rust, RubyGems, pub | Yes | Yes |
| Erlang, Swift | Yes | No |

GitHub documents these scans only for pull requests on GitHub.com. Copilot code review itself also works in Azure DevOps, but the docs don't say whether the scans do there.

## How to turn them on

1. For a whole organization: **Settings**, then under "Code, planning, and automation" **Copilot**, then **Code review**. Under **Security**, switch on **Dependency vulnerabilities**, **License compliance**, or both.
2. For one repository: the same path in the repository's **Settings**. A repository's choice overrides the organization default, and once changed, the repository keeps its own value ([configuration docs](https://docs.github.com/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review)).
3. If you can't change the toggles, your organization or enterprise may restrict preview features; an owner has to allow them first.

Organization owners and repository administrators can change these settings.

## What it costs

A scan is billed as part of the review it runs in, in AI credits (1 credit = $0.01). GitHub's own estimates for a review without the scans, which exclude GitHub Actions minutes and rise with pull request size and custom instructions:

| Review effort | Typical range | Average |
|---|---|---|
| Lite | $0.05 to $1 | $0.25 |
| Balanced (default) | $0.25 to $5 | **$1.50** |
| Max (preview) | $1.50 to $25 | $10 |

On [Copilot Pro](https://github.com/features/copilot/plans) ($10 a month, $15 of monthly credits, checked 4 December 2026), that is about ten average Balanced reviews before the scans add anything, and before chat and agent work draw on the same credits. Pro+ is $39 with $70 of credits, Max $100 with $200.

For teams, watch the billing date. From **30 December 2026**, an organization or enterprise on Copilot Business or Enterprise that never saved a code review billing choice will pay for its licensed members' reviews itself instead of using their own allowance. Accounts without AI Credits paid usage enabled, with a billing lock or with no billable customer are set to Member instead ([GitHub changelog](https://blog.github.com/changelog/2026-11-25-copilot-code-review-billing-will-default-to-the-organization/)). Pick **Member** before then if you want the old behaviour. Turning the scans on across an organization makes reviews cost more by an amount GitHub hasn't stated, so set a budget first. Our breakdown of [the Lite, Balanced and Max tiers](https://smarterthanus.ai/copilot-code-review-lite-balanced-max-tiers/) and the [seat vs credit cost for an 8-person team](https://smarterthanus.ai/ai-code-review-pricing-seat-vs-credit/) go deeper on the numbers.

## What it won't catch

- **Low-severity advisories.** Skipped by design.
- **Lockfile-only changes.** Not scanned. Transitive dependencies are checked only when the pull request adds or changes them in a lockfile.
- **Packages with no license data.** Not flagged, so "no comment" doesn't mean "license is fine".
- **Your company's license policy.** The scan uses GitHub's built-in list. On branches where a ruleset requires license compliance results before merging, the license scan doesn't run at all.
- **Merge blocking.** These are review comments. GitHub notes that if a package can't be checked, Copilot might not approve the pull request, but the scan itself doesn't enforce anything.

## When the older tools are the better fit

If you need a check that fails the build, GitHub's [dependency review action](https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review) fails by default when it finds vulnerable packages and can take a severity threshold and license allow or deny lists. It is free on public repositories; private ones need GitHub Code Security or Advanced Security. [Code Security is $30](https://github.com/security/plans) per active committer per month.

If legal needs your own license policy enforced, that is [open source license compliance](https://docs.github.com/enterprise-cloud@latest/code-security/concepts/supply-chain-security/open-source-license-compliance): GitHub Enterprise Cloud only, with a Code Security license on the repository, enforced through rulesets.

The Copilot scans make most sense for small teams and solo developers already paying for Copilot who want a heads-up in the review without setting up a separate workflow. Since you pay per review, start with the vulnerability scan on the repositories that add packages most often, and look at your credit usage after a week before switching it on everywhere.

Related on Smarter Than Us: [Copilot now connects to 17 more services, from Azure DevOps to Trello](https://smarterthanus.ai/copilot-connectors-azure-devops-trello-cypress/).

## Sources

- [Copilot code review: Dependency vulnerability and license compliance scans (GitHub changelog, 3 December 2026)](https://blog.github.com/changelog/2026-12-03-copilot-code-review-dependency-scans/)
- [About Copilot code review (GitHub Docs)](https://docs.github.com/en/copilot/concepts/agents/code-review)
- [Configuring Copilot code review (GitHub Docs)](https://docs.github.com/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review)
- [Copilot code review billing will default to the organization (GitHub changelog, 25 November 2026)](https://blog.github.com/changelog/2026-11-25-copilot-code-review-billing-will-default-to-the-organization/)
- [GitHub Copilot plans and pricing](https://github.com/features/copilot/plans)
- [About dependency review (GitHub Docs)](https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review)
- [Open source license compliance (GitHub Docs)](https://docs.github.com/enterprise-cloud@latest/code-security/concepts/supply-chain-security/open-source-license-compliance)
- [GitHub security plans and pricing](https://github.com/security/plans)
