From the source
GitHub's Copilot code review can now flag risky dependencies and disallowed licenses in the pull request that introduces them, so problems can be fixed before merging.
- Both scans are in public preview and subject to change, and GitHub says they add to the AI credits a review uses.
- When a pull request adds or updates a package, Copilot checks it against advisories GitHub has reviewed in the GitHub Advisory Database, and each comment names the advisories, their severity, and the first patched version when one exists; low-severity advisories are not reported.
- The license scan compares each added or updated package against a built-in set of commonly allowed open source licenses and comments when a license falls outside that set, though packages without license information are not flagged.
- The license scan does not use an enterprise's own license policy, and it does not run on branches where a ruleset requires open source license compliance results before merging.
- Both scans are off by default and can be turned on under Copilot and then Code review in organization or repository settings, where a repository's setting overrides its organization's default.


