47 model prices

    Security

    GitHub layers local, pull request and repository scans for AI-written code

    GitHub says it detected over 200 million vulnerabilities from January to October 2026 and pairs CodeQL with AI-powered scans.

    Glassy shield with a checkmark over a colorful blue, green and pink pixel-grid background
    Image: GitHub

    GitHub has described how it layers security checks for AI-assisted development, from a local /security-review command to pull request scanning and repository-wide AI scans. The company says it detected over 200 million vulnerabilities from January to October 2026, a 100% increase year over year, based on internal data.

    Checks before the merge

    Developers can run /security-review on active changes before opening a pull request. It works in the Copilot app, Copilot CLI and Copilot Chat in VS Code. GitHub says it covers local changes only and does not edit code itself. In GitHub's example, a PHP search endpoint puts the search text straight into an SQL query. The review could flag SQL injection and suggest a parameterized query.

    On pull requests, GitHub Code Security checks are built on CodeQL. GitHub says AI Scanning adds coverage for more languages and vulnerability patterns. CodeQL runs queries over a database of the code, while AI Scanning sends agents through the repository to reason about how it works. PHP, the language in the example, sits outside CodeQL's coverage.

    Scanning code nobody is changing

    Pull request checks skip older code, so users with write access can run Standard AI Scan on a repository's default branch. GitHub says the scan runs a proprietary harness that can combine several models. Its agent picks which files and functions to inspect, limited by a time budget. Findings appear beside CodeQL alerts in the code scanning backlog, and duplicates are suppressed.

    Deep Scan is powered by Microsoft's Codename MDASH and is in private preview. GitHub intends it for situations such as release testing and audits. Alerts from CodeQL, Standard AI Scan and Deep Scan share one backlog and come with fix suggestions. GitHub says agentic autofix works across all three and partner tools. GitHub adds that no single green check certifies a whole codebase.

    Related stories