Skip to content
NWM.NEW WEB MEDIA
EN/KO

GitHub Copilot code review now checks dependency vulnerabilities and license violations before merge

In brief

GitHub has added dependency vulnerability checks and license checks to Copilot code review as a public preview.

1 min read

Edited by Seung Kim

Translated from the Korean original. Read the original in Korean

Why it matters

  • Risky packages can be caught and fixed at the pull request stage before merge, bringing supply chain security checks into the code review flow.

Key details

When a pull request adds or updates a package, Copilot checks it against advisories in the GitHub Advisory Database reviewed by GitHub. The comment includes the relevant advisory, its severity and the first patched version (if one exists); low-severity advisories are not reported. The license check comments when the license of an added or updated package falls outside a built-in list of permissive open-source licenses, and it does not flag packages that have no license information.

Context

Both checks are available on the Copilot Pro, Pro+, Max, Business and Enterprise plans, and they cost additional AI credits on top of those used for the review. They are off by default and are turned on from the Copilot, Code review menu in organization or repository settings. Repository settings take precedence over organization defaults. The license check does not use a company's own license policy, so enforcing a policy requires the separate open-source license compliance feature. The checks do not run on branches with a ruleset that requires results before merge.

Sources

About this articleShow
Editor
Seung Kim
Primary sources
1
Version
r1

If anything in this article is wrong, please request a correction.

#GitHub#Copilot#supply chain security#code review