GitHub Copilot code review adds dependency vulnerability and license scans in public preview
GitHub says Copilot code review can now flag a risky dependency in the pull request that adds it, so it can be fixed before merging. Both scans are in public preview and subject to change. They are available on Copilot Pro, Pro+, Max, Business and Enterprise plans, and add to the AI credits a review uses.
Dependency vulnerabilities. When a pull request adds or updates a package, Copilot checks it against advisories GitHub has reviewed in the GitHub Advisory Database. Each comment names the advisories, their 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 a license is outside that set. Packages without license information are not flagged. This scan does not use an enterprise's own license policy (GitHub points to its open source license compliance feature for that), and it does not run on branches where a ruleset requires those results before merging.
Turning it on. Both scans are off by default. In organization or repository Settings, go to Copilot, then Code review, and turn on Dependency vulnerabilities, License compliance, or both. A repository's setting overrides its organization's default.
Sources
Get news like this as a push.
AI Tracker alerts you when something changes for the tools you use.