
Image: GitHub
Why it mattersA pull request that adds a risky package gets a comment before merge. A reviewer sees the advisory and the licence problem in the same place as the code.
A reviewer adds a new package to a pull request and merges it. A scanner flags a known advisory a week later, on the main branch. GitHub says Copilot code review now reads that advisory in the review itself.
GitHub posted the change to its changelog on 3 December. Copilot code review can now flag a risky dependency in the pull request that adds it. Two new checks are live: a dependency vulnerability scan and an open source licence check. Both are in public preview and may change.
What each scan does
The dependency scan runs when a pull request adds or updates a package. Copilot checks the package against advisories in the GitHub Advisory Database. The comment names the advisories, their severity, and the first patched version when one exists, GitHub says. Low-severity advisories are not reported.
The licence scan runs on the same trigger. Copilot checks each added or updated package against a built-in list of allowed open source licences, GitHub says. A licence outside the list gets a comment. Packages with no licence information are not flagged.
The licence scan does not use the enterprise's own licence policy, the post says. A team that wants to enforce its own list uses the existing open source licence compliance feature. On branches where a ruleset requires those results before merging, the new licence scan does not run.
Who can use it, and what it costs
Both scans are available to Copilot Pro, Pro+, Max, Business, and Enterprise plans, GitHub says. They add to the AI credits a review uses. The changelog does not give a cost per scan.
The scans are off by default. GitHub says an owner turns them on in Settings, under Copilot, then Code review. The owner then ticks Dependency vulnerabilities, Licence compliance, or both. A repository's setting overrides its organisation's default.
What it changes for a team shipping with Copilot
A team that already runs Dependabot has a list of known-vulnerable dependencies and a workflow for patching them. The new scans do not replace that list. They move the warning forward in time, into the pull request that adds the dependency.
A reviewer reading a diff can now see a Copilot comment on the advisory. The comment names the first patched version. The author can swap the package or upgrade it before merge. The alternative today is a Dependabot alert raised on the main branch after the merge.
The trade is the AI credit cost, since each scan uses credits from the review. A team doing many small pull requests will pay more than a team doing fewer, larger ones.
Source
Copilot code review: Dependency vulnerability and licence compliance scans, GitHub Changelog.
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.


