GitHub details layered security checks for AI-generated code

GitHub BlogGitHub Blog·Original
Operator Bae ChangHyun

Key point

GitHub describes security checks for AI-assisted code at the local, pull request, and repository levels, with suggested fixes across the workflow.

Details

  • GitHub presents a layered security workflow that checks AI-assisted changes locally, on pull requests, and across existing repository code.
  • The local /security-review checks active changes for vulnerabilities before a pull request, while CodeQL and AI Scanning check pull requests before merging.
  • Standard AI Scan looks for risks on a repository’s default branch, and Deep Scan is in private preview for more thorough investigations such as release testing or audits.
  • GitHub says its internal data detected over 200 million vulnerabilities from January to October 2026, a 100% year-over-year increase.

Local security review

  • Developers can run /security-review in the Copilot app, Copilot CLI, or Copilot Chat in VS Code to get prioritized findings and remediation suggestions.
  • The review focuses on active local changes, not the full repository, and does not edit code; developers can ask Copilot to explain a finding or try a fix.

Pull request checks

  • CodeQL represents code in a database and runs queries designed for high precision and few false positives.
  • AI Scanning uses agents to explore a repository and reason about code, extending coverage to additional languages and vulnerability patterns, including business-logic risks.

Repository scans

  • People with write access can run Standard AI Scan on a repository’s default branch; its agent selects files and functions to examine within a time budget and can scan languages outside CodeQL’s coverage.
  • Standard AI Scan findings appear alongside CodeQL alerts, and duplicate findings covered by CodeQL alerts are suppressed.
  • Deep Scan, powered by Microsoft’s Codename MDASH, is currently in private preview and is intended for higher-attention situations.

Findings and fixes

  • Alerts from CodeQL, Standard AI Scan, and Deep Scan share a backlog and include fix suggestions.
  • GitHub says agentic autofix works across those scans and partner tools, while the security extension in the Copilot app lets users investigate alerts and work on fixes in a security canvas.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.