# AI 编写更多代码时，如何在 GitHub 上安全构建软件？

> 原标题：How do you build securely when AI is writing more of the code?

- 来源：GitHub Blog · AI & ML
- 发布时间：2026-12-02T18:30:34.000Z
- AX AI 日报：https://ai-daily.ax0x.ai/items/lrsqwu1wagk42xsfh36x8z7j8
- 原文：https://blog.github.com/security/application-security/how-do-you-build-securely-when-ai-is-writing-more-of-the-code/

## 摘要

GitHub 介绍了覆盖本地变更、拉取请求和存量代码的安全工作流，用分层检查发现 AI 生成代码中的漏洞并推进修复。本地可运行 /security-review 获取风险与修复建议，合并前由 CodeQL 和 AI Scanning 检查变更，Standard AI Scan 则扫描默认分支并将发现汇入统一告警列表。
