AIFeed

Copilot 代码审查:依赖漏洞与许可证合规扫描

AI summary

Copilot 代码审查现可在引入风险依赖的拉取请求中直接标记该依赖,便于在合并前修复。两项扫描均处于公开预览阶段,可能发生变化,适用于 Copilot Pro、Pro+、Max、Business 和 Enterprise 计划,并会额外消耗审查所用的 AI 额度。依赖漏洞扫描会对照 GitHub 咨询数据库中的已审核公告检查新增或更新的软件包,评论中会列出公告名称、严重程度及首个修复版本(如有),低危公告不予报告;许可证合规扫描则将每个新增或更新软件包的许可证与内置的常用开源许可证集合比对,超出该集合时评论提示,无许可证信息的软件包不会被标记,且该扫描不使用企业的许可证策略。

Translation(model translation, not the source's own text)

Copilot 代码审查:依赖项漏洞与许可证合规扫描

Copilot 代码审查现在可以在引入风险依赖项的拉取请求中将其标记出来,让你在合并前就能修复。两项扫描均处于公开预览阶段,可能会发生变化。

它们适用于 Copilot Pro、Pro+、Max、Business 和 Enterprise 计划,并会计入一次审查所使用的 AI credits。

🛡️ 依赖项漏洞

当拉取请求添加或更新某个包时,Copilot 会将其与 GitHub 在 GitHub Advisory Database 中审核过的安全公告进行比对。每条评论会列出相关公告、其严重程度,以及存在修复时的首个已修补版本。低严重程度的公告不会被报告。

📜 许可证合规

Copilot 会将每个添加或更新的包的许可证与一组内置的常用允许开源许可证进行比对,并在许可证不在此集合内时发表评论。没有许可证信息的包不会被标记。

此扫描不使用你企业的许可证策略。若要强制执行策略,请使用 open source license compliance。在分支上,如果某个规则集要求其结果为合并前提,则此扫描不会运行。

⚙️ 开启扫描

两项扫描默认关闭。在你的组织或仓库 Settings 中,点击 Copilot,然后点击 Code review,并开启 Dependency vulnerabilities、License compliance 或两者。仓库的设置会覆盖其组织的默认设置。

要开始使用,请参阅 Configuring dependency scans。

Related Posts

  • DEC.3ImprovementConnect Azure DevOps、Trello、Cypress 等至 CopilotCopilot
  • DEC.2ImprovementAI 使用情况 REST API 中的按模型 token 明细CopilotAccount Management
  • Account Management
  • NOV.30RetiredClaude Opus 4.8 (fast) 于 2026 年 11 月 30 日弃用Copilot
  • NOV.30ReleaseGitHub Copilot for JetBrains 中的自动化及更多功能Copilot
  • NOV.25ImprovementCopilot 代码审查计费将默认归属组织Copilot
  • NOV.18ImprovementConnect Supabase、Box、Calendly 等至 CopilotCopilot
  • NOV.18ReleaseGitHub Copilot 中的 Gemini 4 NeonCopilot
  • NOV.18Release为你的团队自定义 GitHub CopilotCopilot
  • NOV.17ReleaseOpenAI 的 GPT-6.2 Astra 和 GPT-6.2 Sol 现已可用Copilot

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by GitHub Changelog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗