从代理的首次提交到生产环境,全程保护代码
AI 代理交付代码的速度比安全团队可以手动查看代码更快。 GitHub 缩小了软件开发生命周期的每个阶段中内置的安全性差距,从本地审查到组织范围的检测和自动修正,所有这些都不会离开 GitHub。
Review an agent's changes before you push
2 文章10–15 minutesRun a local security review of an AI agent's changes directly from GitHub Copilot CLI, your IDE, or the GitHub Copilot app, before code ever reaches GitHub. Scan for exposed secrets and other vulnerabilities, then review and fix alerts without leaving your editor.
Stop leaked credentials before they reach your repository
2 文章15–30 minutesDetect secrets as they are pushed, including AI-powered detection of unstructured secrets like passwords. Push protection blocks the push before the secret reaches your repository.
Detect vulnerabilities at scale with hybrid detection
4 文章1–2 hoursCombine CodeQL with AI-powered scanning for layered coverage. Qualifying pull requests get an extra AI review in languages CodeQL doesn't support, and you can manually trigger an AI scan of your repository's default branch to catch more vulnerabilities.
Define and enforce the rules for merging code
3 文章30–60 minutesSet organization rulesets and policies that define your merge requirements, including required reviews and status checks. Every pull request, whether written by a person or an agent, stays subject to the same rules.
Resolve alerts with draft pull requests
3 文章30–60 minutesAssign alerts to Agentic Autofix. It investigates each alert and opens a draft pull request with a proposed fix, ready for your team to review and merge under your existing rules. Track remediation progress across your organization with security campaigns.
Go beyond security to code quality
2 文章15–30 minutesCatch quality issues alongside security issues, using the same CodeQL engine and AI-powered analysis. Findings appear as inline pull request comments with suggested fixes, so code stays maintainable as agents generate more of it.