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
- Open your repository’s list of security alerts and pick a small batch, not all 25 at once.
- Hand them to agentic autofix and wait for the draft pull request.
- Read the diff like any other contribution: does the fix change behavior, touch unrelated files, or remove checks?
- 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?
Free weekly email
Get stories like this every week
The Weekly Signal: the week's AI news in plain English, plus one thing to try. Free, one email a week.
Sources & links 2
More on AI Safety & Regulation News