Copilot code review now flags risky packages in pull requests
GitHub's Copilot code review can now comment on a pull request that adds a package with a known security advisory or an unapproved licence. Both checks are in public preview, are off by default and cost extra AI credits. The licence check does not use your company's own policy list, so it is not a full compliance tool.
GitHub's changelog of 3 December says Copilot code review can now check dependencies in the pull request that adds or updates them. For vulnerabilities, it checks packages against the GitHub Advisory Database and comments with each advisory, its severity and the first patched version if one exists. Low-severity advisories are not reported.
For licences, it compares each added or updated package with a built-in list of commonly allowed open source licences and comments on any outside the list. Packages with no licence information are not flagged.
Both scans are in public preview for Copilot Pro, Pro+, Max, Business and Enterprise plans, and use AI credits on top of a normal review. Neither runs on branches where a ruleset requires review results before merging.
New to this? The key idea
Software is built from many packages written by others. A vulnerability advisory is a public notice that a version has a security flaw, often with the first fixed version. Catching it at review time is cheaper than after release.
Use it at work
Use it for: repo owners who want a dependency check on every pull request without a separate scanner.
Try it: in organisation or repository settings, go to Copilot, then Code review, and turn on Dependency vulnerabilities, License compliance, or both. A repository setting overrides the organisation default.
Before you roll it out: public preview; extra credit cost; to enforce your own licence policy use GitHub's open source licence compliance feature instead.
Summaries are written by AI from the linked source. Always check the original.