Skip to content

Signals/ Safety & Policy/ Reel /

GitHub's AI Now Finds and Fixes Security Holes

On October 15, GitHub made two AI security features generally available. One finds risky code in pull requests that GitHub’s built-in scanner can’t read. The other writes fixes for security alerts, checks them, and hands you a draft pull request. Together they cover finding, fixing and double-checking, and you still make the final call.

AI Scan: a second set of eyes on pull requests

GitHub’s regular code scanner is CodeQL, and some common files fall outside the languages it supports. AI Scan covers those: it reads the changes in a pull request and flags vulnerabilities in languages and formats CodeQL doesn’t currently cover, including PHP, shell scripts, Terraform, Dockerfiles, JSP for Java and Blazor for C#.

Findings show up next to your CodeQL results with an “AI” label, sometimes with an explanation of the risk and a suggested fix. They’re advisory: they don’t fail the code scanning check, and a ruleset can’t use them to block a merge. AI Scan also skips pull requests from forks and from Dependabot.

Who gets it: any public repository, owned by an organization or a personal account. Private and internal organization repositories need GitHub Code Security or GitHub Advanced Security. You don’t need a Copilot license. Usage is billed as Code Security AI Credits, and you can set a budget for them.

Use case: an open-source maintainer

A maintainer whose project includes deploy scripts and a Dockerfile could turn on AI Scan to get a second opinion on outside contributions to exactly the files a regular scanner wouldn’t read. Treat a finding as a reason to look closer.

Agentic autofix: the fixer that checks its own work

The second feature works on security alerts that already exist in your repository. Copilot explores the relevant files, writes a fix, then reruns CodeQL to confirm the fix actually closes the alert. If it doesn’t, it tries again. When the fix holds, it opens a draft pull request for you to review. You can select up to 25 alerts and have them fixed together in one pull request.

Who gets it: GitHub Code Security and GitHub Advanced Security customers on GitHub Enterprise Cloud, including the data residency version. An enterprise admin has to allow the feature first, then an organization or repository admin turns it on. It needs a Copilot billing method and uses Code Security AI Credits plus GitHub Actions minutes.

Workflow: from alert to merge

  1. Open your repository’s list of security alerts and pick a small batch, not all 25 at once.
  2. Hand them to agentic autofix and wait for the draft pull request.
  3. Read the diff like any other contribution: does the fix change behavior, touch unrelated files, or remove checks?
  4. Run your own tests, then merge only what you understand.

The catch

AI Scan only warns. A pull request can still be merged with an AI Scan finding open, so treat it as an extra signal alongside your tests. Agentic autofix is limited to enterprise customers and costs AI Credits and Actions minutes, so small teams on other plans can’t use it yet.

Try this prompt

If you review an AI-written security fix with any chat assistant, paste the diff in with this:

Here is a code change that claims to fix a security alert: [paste the alert description] and [paste the diff]. Explain in plain words what the vulnerability was, how this change fixes it, and anything the change might break. List any part you're not sure about.

Would you let AI open security fixes on your repo?

Sources & links 2

  1. GitHub Changelog: AI Scan for pull requests is generally available github.blog ↗
  2. GitHub Changelog: agentic autofix for code scanning alerts is generally available github.blog ↗

More on AI Safety & Regulation News

More signals

Reel

5 New GitHub Repos Where AI Agents Do Wild Things (The Last One Plays Its Own Game)

AI agents that explain their own code, work in a locked room, rewrite training mid-run, build their own exams and play-test their own games. Five day-old repos: setup, first prompts, costs and the catch.

Helps Builders and tinkerers who use AI coding agents, like an indie dev who wants an agent to build and play-test a tiny game

  • GitHub
  • AI Agents
  • Claude Code
Reel

5 New GitHub Repos Worth Stealing Ideas From (The Last One Is Wild)

Five GitHub repos from October 20-21, from a sidebar for running many AI agents to a skill that turns a motion video into editable code. Install commands, first prompts, what each changes on your machine, and the catch.

Helps Solo builders and creators who make things with AI coding agents, like a creator who wants their agent to turn a motion clip into editable code

  • GitHub
  • Claude Code
  • AI Agents

Free weekly email

The Weekly Signal

Once a week: the AI news that matters, explained in plain English, with one tool you can try that day. No spam. Unsubscribe any time.

By subscribing you agree to get the weekly email. See our Privacy Policy.