Security

GitHub just made AI fix your security alerts automatically. Here's what that actually changes

On October 15, 2026, GitHub shipped two features out of preview and into general availability on the same day: **Agentic autofix for code scanning alerts** and **AI Scan for pull requests**. Together they mean an AI…

On October 15, 2026, GitHub shipped two features out of preview and into general availability on the same day: Agentic autofix for code scanning alerts and AI Scan for pull requests. Together they mean an AI agent can now find a vulnerability in your pull request, explain it, write the patch, verify the patch closes the alert, and open a draft PR for a human to merge — without anyone asking it to. That's a bigger shift than another model bump. It changes who looks at a security finding first, and it changes what "reviewing a PR" means for every team on GitHub Enterprise Cloud.

I've spent enough time cleaning up after automated "fixes" that changed behavior nobody asked to change. So before your org flips this on because it showed up as a shiny new toggle, here's what it does, what GitHub itself says can go wrong, and what to actually check before you trust it.

What shipped, and what it replaces

Agentic autofix (GA Oct 15, 2026) works through a CodeQL alert the way a developer would: it explores the relevant files, drafts a fix, reruns CodeQL to confirm the alert closes, iterates if the first pass doesn't work, and opens a draft PR with a summary of what it changed and why. You can assign a single alert, or batch up to 25 alerts into one PR via the alert list or a security campaign. It also exposes a REST API path — set assignees to ["copilot-swe-agent[bot]"] on the Update a Code Scanning Alert endpoint — so you can wire it into your own tooling. (Evidenced — GitHub Changelog, github.blog, Oct 15, 2026.)

This replaces the older "Generate Fix" button (the original Copilot Autofix, free on public repos since 2024) with an "Assign to Copilot" workflow once an admin turns the feature on. It's limited to alerts on the default branch — alerts only visible on a PR or feature branch aren't eligible — and it requires GitHub Code Security or Advanced Security on Enterprise Cloud, enabled at both the enterprise and org/repo level, plus a Copilot billing method. Usage draws on Code Security AI Credits and GitHub Actions minutes, budgetable at the SKU level. (Evidenced — same source.)

AI Scan for pull requests (also GA Oct 15, 2026) is the detection half. It runs automatically on PRs to catch vulnerabilities in languages CodeQL doesn't cover — PHP, Shell/Bash, Terraform/HCL, Dockerfiles, JSP, Blazor — and surfaces findings on the Conversation and Files Changed tabs with an "AI" label, sometimes with a suggested fix attached. Critically, it's advisory: findings don't fail the code scanning check and can't block a merge through branch protection rules. It skips fork PRs and Dependabot PRs. It runs on public repos for free; private/internal repos need Code Security or Advanced Security, but — unlike Autofix — no Copilot license is required. (Evidenced — GitHub Changelog, github.blog, Oct 15, 2026.)

What GitHub itself says can go wrong

This is the part worth reading before you enable anything, because it's not hype or hedging from a third party — it's GitHub's own responsible-use documentation for Autofix, and it's blunt:

"The system may suggest fixes that fail to remediate the underlying vulnerability or introduce new vulnerabilities." The model "has no understanding of the programmer's intent," so a fix can be syntactically valid while quietly changing behavior. Suggestions can also propose "fabricated dependencies published under statistically probable names" — a direct line to a slopsquatting-style supply chain risk if someone merges without checking. (Evidenced — GitHub Docs, "Responsible use of Autofix for code scanning.")

GitHub's own guidance in response: have CI running on PRs before you turn Autofix on, run dependency review on anything it touches, watch the Autofix metrics in your security dashboard, and don't let "AI fixed it" replace an actual diff review. None of that is optional overhead — it's the actual cost of adopting this feature, and it's GitHub telling you that, not a skeptic on the internet.

The practical read: for small, well-understood CodeQL categories (missing input validation, obvious injection patterns) this is a legitimate time-saver on the backlog of alerts nobody triages. For anything touching auth, crypto, or business logic, treat the draft PR as a first draft from a junior contributor who has never seen your system in production — useful starting point, not a merge candidate.

Why it matters in practice

  • Review burden shifts, it doesn't disappear. AI Scan findings are advisory precisely because GitHub doesn't trust them to gate a merge yet. That's an admission the detection side still produces false positives worth a human look, not just a hint of one.
  • Cost is now metered, not free. Both features consume Code Security AI Credits plus Actions minutes for Autofix. If your org already has a security backlog of hundreds of alerts, batch-assigning 25 at a time to Copilot has a real, trackable bill — budget it at the SKU level before someone runs it against your whole alert queue.
  • Governance teams need a new checkbox. The feature requires an explicit enterprise-level policy enable, then an org/repo-level enable, then a Copilot billing method. That's three separate places someone can turn this on without the others knowing. If you're in a regulated shop, that's worth a line in your AI-usage policy before it gets flipped on by someone just trying to clear their alert count.
  • Supply chain risk gets a new vector. A fix that proposes a plausible-but-fake package name is a known failure mode for LLM code generation generally; GitHub is now shipping that risk inside an automated security-fix pipeline. Dependency review isn't a nice-to-have here — it's load-bearing.

Context and debate

I could not find independent, 2026-dated research specifically evaluating Agentic autofix or AI Scan's accuracy — the GA announcements are too recent for that. What does exist is older and adjacent: a 2025 Toronto Metropolitan University study found Copilot's code review frequently missed critical issues like SQL injection and XSS while focusing feedback on style nits, and earlier NYU/academic research (2021–2023) found a meaningful share of Copilot-generated code carried exploitable flaws. None of that is a direct verdict on this specific GA release, but it's the closest available signal on how this class of tool tends to perform, and it should temper any assumption that "reruns CodeQL" equals "verified safe." (Evidenced for the cited studies themselves; disputed/unverified as applied to this specific feature — no direct study exists yet.)

A genuine open question: does "advisory-only, can't block merge" for AI Scan mean teams will actually read the findings, or will it become the kind of warning everyone learns to click past — the same fate that befalls a lot of low-severity linter output? That's a cultural question GitHub's docs don't answer, and it'll depend entirely on how your team sets expectations before rollout.

Checklist before you enable this

  • Confirm CI runs on every PR before enabling Autofix — GitHub's own prerequisite.
  • Turn on dependency review before allowing Autofix near anything that touches package manifests.
  • Set a SKU-level AI credit budget before batch-assigning alerts — don't find out the cost after a 25-alert batch run.
  • Treat every Autofix draft PR as requiring a real diff review — no fast-path merges, regardless of how clean the PR description looks.
  • Decide, as a team, who owns reading AI Scan's advisory findings — if no one owns it, no one will read it.
  • Audit who has enterprise-level and org-level toggle access for these features before enabling — three separate enable points means three separate places for scope creep.

Unverified claims or gaps

  • No independent (non-GitHub) accuracy data exists yet for the October 15, 2026 GA versions of Agentic autofix or AI Scan specifically — only older studies on earlier Copilot code-review/generation features, and GitHub's own 2024-era claim of remediating "more than two-thirds" of alerts in its test harness (self-reported, not independently verified, and predates this GA release).
  • No official per-credit or per-scan cost figures were published in the changelog posts; budgeting guidance exists, but GitHub didn't disclose pricing detail in these pages.
  • No real-world incident reports or practitioner write-ups of using the GA version yet — it's five days old as of this writing.
  • Whether "AI Scan" and "Agentic autofix" are bundled under the same admin toggle or fully independent wasn't fully confirmed across sources; the changelog posts describe them as companion but separate features with separate enablement steps for Autofix.

Sources

  1. Agentic autofix for code scanning alerts general availability — GitHub Changelog, Oct 15, 2026.
  2. AI Scan for pull requests generally available — GitHub Changelog, Oct 15, 2026.
  3. Agentic autofix for code scanning alerts in public preview — GitHub Changelog, Jul 10, 2026 (preview predecessor, for context).
  4. Code scanning shows AI security detections on pull requests — GitHub Changelog, Jul 14, 2026 (preview predecessor, for context).
  5. Responsible use of Autofix for code scanning — GitHub Docs (accessed Oct 20, 2026; no publish date shown on page).
  6. Now available for free on all public repositories: Copilot Autofix for CodeQL code scanning alerts — GitHub Changelog, Sep 17, 2024 (origin of the "two-thirds" remediation claim, cited for context, predates current GA).
Next essay

Your AI coding assistant's model just changed under you. Did your team notice?

7 min read