The post has been translated automatically. Original language: Russian
On December 3, 2026, GitHub added two new checks to the Copilot code review: for vulnerabilities in dependencies and for compliance with their licenses. The AI reviewer can now mark the risky package right in the pull request where it was added — before the merge, and not after it has already been included in the main branch. Both checks have been released in a public preview, and GitHub explicitly warns that their behavior may change.
Checking for vulnerabilities in dependencies
Verification is triggered when a pull request adds a new package or updates a version of an existing one. The package is checked against the verified records of the GitHub Advisory Database, the same vulnerability database that Dependabot relies on.
The reviewer's comment indicates:
- which advisory services are affected by the package?;
- their level of criticality;
- the first corrected version, if it has already been released.
Low-criticality vulnerabilities are not included in the comments.
License verification
The second check compares the license of each added or updated package with the built-in set of common permissive open licenses. If the license goes beyond this set, Copilot leaves a comment.
The verification has noticeable limitations:
- packages without license information are not marked at all;
- The organization's corporate licensing policy is not taken into account. To comply with it, GitHub refers to a separate open source license control mechanism.;
- on branches where the repository rules require the results of this check before merging, it does not run.
How to enable it and how much it costs
Both checks are disabled by default. They are enabled in the organization or repository settings: the Copilot section, the Code review subsection, the Dependency vulnerabilities and License compliance switches — you can enable one or both. The repository setting overrides the default value set for the organization.
The feature is available on Copilot Pro, Pro+, Max, Business and Enterprise tariffs. Each check is added to the expenditure of AI credits that a single review spends.
What does this mean in practice?
For the backend team, this is another level of supply chain protection, and in a convenient place: the package comment appears in the same review dialog as the code comments. But I would not replace existing tools with it.
What to pay attention to:
- The check is triggered only when a package is added or updated. It will not show vulnerabilities found later in already installed dependencies — Dependabot and CI scanning are still needed.
- Low criticality is cut off, which means that the reviewer does not provide a complete picture of the project.
- The licensing review does not know about the company's internal rules. If lawyers prohibit, for example, copyleft licenses, it is impossible to focus only on the Copilot comment, and the package without the specified license will pass in silence.
- AI credits are spent on each review with checks enabled. In monorepositories with frequent updates of lock files, it is worth including them selectively, at the level of individual repositories, and looking at the expense for the first weeks.
- This is a preview: the format of the comments and the rules may change, so it's too early to build on them the mandatory pipeline steps.
A reasonable scenario is to enable both checks in several active repositories, compare Copilot's comments with what Dependabot and the scanner are already finding in CI, and only then decide whether to roll out the feature to the entire organization.
The draft text was prepared with the participation of AI, the facts were checked against the original source — the official changelog GitHub, the record of dependency checks in the Copilot code review
3 декабря 2026 года GitHub добавил в Copilot code review две новые проверки: на уязвимости в зависимостях и на соответствие их лицензий. ИИ-ревьюер теперь может отметить рискованный пакет прямо в том pull request, где его добавили, — до слияния, а не после того, как он уже попал в основную ветку. Обе проверки вышли в публичном превью, и GitHub прямо предупреждает, что их поведение может измениться.
Проверка уязвимостей в зависимостях
Проверка запускается, когда pull request добавляет новый пакет или обновляет версию существующего. Пакет сверяется с проверенными записями GitHub Advisory Database — той же базы уязвимостей, на которую опирается Dependabot.
В комментарии ревьюера указывается:
- какие именно advisory затрагивают пакет;
- их уровень критичности;
- первая исправленная версия, если она уже вышла.
Уязвимости низкой критичности в комментарии не попадают.
Проверка лицензий
Вторая проверка сравнивает лицензию каждого добавленного или обновлённого пакета со встроенным набором распространённых разрешительных открытых лицензий. Если лицензия выходит за этот набор, Copilot оставляет комментарий.
У проверки есть заметные ограничения:
- пакеты без сведений о лицензии не отмечаются вовсе;
- корпоративная лицензионная политика организации не учитывается — для её соблюдения GitHub отсылает к отдельному механизму контроля лицензий открытого кода;
- на ветках, где правила репозитория требуют результаты этой проверки перед слиянием, она не запускается.
Как включить и сколько стоит
Обе проверки по умолчанию выключены. Включаются они в настройках организации или репозитория: раздел Copilot, подраздел Code review, переключатели Dependency vulnerabilities и License compliance — можно включить одну или обе. Настройка репозитория перекрывает значение по умолчанию, заданное для организации.
Функция доступна на тарифах Copilot Pro, Pro+, Max, Business и Enterprise. Каждая проверка добавляется к расходу кредитов ИИ, которые тратит одно ревью.
Что это значит на практике
Для backend-команды это ещё один уровень защиты цепочки поставок, причём в удобном месте: замечание о пакете появляется в том же диалоге ревью, что и замечания по коду. Но заменять им существующие инструменты я бы не стал.
На что обратить внимание:
- Проверка срабатывает только на добавление или обновление пакета. Уязвимости, найденные позже в уже установленных зависимостях, она не покажет — Dependabot и сканирование в CI по-прежнему нужны.
- Низкая критичность отсекается, значит полную картину по проекту ревьюер не даёт.
- Лицензионная проверка не знает о внутренних правилах компании. Если юристы запрещают, например, копилефт-лицензии, ориентироваться только на комментарий Copilot нельзя, а пакет без указанной лицензии пройдёт молча.
- Кредиты ИИ расходуются на каждое ревью с включёнными проверками. В монорепозитории с частыми обновлениями lock-файлов стоит включать их выборочно, на уровне отдельных репозиториев, и посмотреть расход за первые недели.
- Это превью: формат комментариев и правила могут поменяться, поэтому строить на них обязательные шаги пайплайна пока рано.
Разумный сценарий — включить обе проверки в нескольких активных репозиториях, сравнить замечания Copilot с тем, что уже находят Dependabot и сканер в CI, и только потом решать, раскатывать ли функцию на всю организацию.
Черновик текста подготовлен с участием ИИ, факты сверены с первоисточником — официальный changelog GitHub, запись о проверках зависимостей в Copilot code review
Comments 0
Newest Popular