Copilot code review now flags vulnerable and license-noncompliant dependencies in PRs
On 3 December 2026, GitHub announced a new Copilot code review feature that can flag a risky dependency in a pull request that adds or updates it, before the merge. Both checks are in Public preview[1]. Dependency vulnerabilities compares packages with reviewed advisories in the GitHub Advisory Database and shows the advisory name, severity and first patched version. License compliance checks against a built-in set of generally allowed open source licenses, not against the company's own policy.
The author tested it in an Internal repository under a Copilot Business organization, with review effort set to Balanced. Adding node-fetch 2.6.6 got a high-severity comment that named the fix version 2.6.7 (3.x: 3.1.1), and adding ffmpeg-static 5.3.0 (GPL-3.0-or-later) got a license comment rated High. A package with only a Low advisory got no dependency comment, and a PR that changed only the lockfile[2] (package-lock.json) was not reviewed at all, because Copilot said it had no reviewable files.
The scans are off by default, leave only comments without blocking the merge, and add to the AI credits each review uses. Low advisories are not reported, and packages without license information are not flagged. The scans cover pull requests on GitHub.com for npm, pip, Maven, NuGet, Composer, Go modules, Rust, RubyGems and pub.
Sources
-
JPQiita JA
Copilot code review が PR 上で依存関係の脆弱性とライセンスを指摘してくれる:Dependabot との違いと注意点






