GitHub said on 15 October 2026 that agentic autofix for code scanning alerts is generally available, and in a companion changelog that code scanning AI Scan for pull requests is generally available too. They are separate Code Security features released the same day: one lets a Copilot agent fix existing CodeQL alerts, the other uses AI Scan to look for new vulnerabilities in pull requests written in languages CodeQL does not cover.
Updated 28 November 2026: we added detail from GitHub’s documentation on what agentic autofix can and cannot verify, how its availability has been described since launch, and when AI Scan runs and stops.
Agentic autofix reruns CodeQL before it opens a draft pull request
Agentic autofix, GitHub says, remediates code scanning alerts by exploring relevant files, proposing a fix, rerunning CodeQL to confirm the alert closes, then opening a draft pull request for review. It is available to GitHub Code Security and GitHub Advanced Security customers on GitHub Enterprise Cloud, including Enterprise Cloud with data residency.
When enabled, it replaces the free “Generate Fix” control on alerts with Assign to Copilot. You can:
- assign a default-branch code scanning alert to Copilot
- select up to 25 alerts to fix together in one PR
- call the Update a Code Scanning Alert REST API with
assignees: ["copilot-swe-agent[bot]"]
GitHub is explicit that only alerts on the repository’s default branch can be assigned; alerts found only on PRs or other branches cannot.
GitHub’s autofix documentation adds limits that the changelog does not spell out. It describes agentic autofix as working “on a best-effort basis” and says it can only confirm a fix by re-running CodeQL’s standard code scanning query suite. It cannot confirm fixes for alerts from custom CodeQL queries, from the security-extended query suite or from third-party scanning tools, and GitHub tells users to “always review and test the generated changes” before merging. The older Copilot Autofix, which suggests a single change for one alert, remains available and does not use AI credits.
Access and billing for autofix
An enterprise admin must enable the “Agentic autofix” Advanced Security policy. Then an org or repo admin turns the feature on in Code Security settings. Access also requires a Copilot billing method. Usage consumes Code Security AI Credits and GitHub Actions minutes.
The documentation, read on 28 November, describes access more broadly than the launch changelog. It says an administrator of an eligible public repository owned by a personal account can switch agentic autofix on directly, that a Copilot licence is not needed, and that the feature is not available for repositories owned by Enterprise Managed Users [3].
AI Scan for pull requests flags issues but cannot block merges
AI Scan complements CodeQL by looking for vulnerabilities in PR changes for languages and frameworks CodeQL does not currently cover, including PHP, Shell/Bash, Terraform (HCL), Dockerfiles, JSP for Java, Blazor for C#, and more. Findings can include a risk explanation and a suggested autofix, shown with an “AI” indicator beside CodeQL results.
Findings are advisory. GitHub states they do not fail the code scanning check and cannot block pull request merges through ruleset requirements. AI Scan does not run on fork PRs or Dependabot PRs.
Access and billing for AI Scan
AI Scan is available for public repositories. Private and internal org repos need Code Security or Advanced Security. A GitHub Copilot licence is not required. It consumes Code Security AI Credits.
GitHub’s AI Scan documentation says scans run when a pull request targeting the default branch or a protected branch is opened and after each new commit, and that AI Scan does not need a build or CodeQL default setup. It uses GitHub’s own prompts rather than repository instruction files such as copilot-instructions.md or CLAUDE.md. If a hard budget leaves no Code Security AI credits, AI Scan produces no findings until an administrator raises the budget or a new billing cycle begins [4].
After the draft PR lands
GitHub says the autofix pull request includes a summary of the fix, why it closes the alert, and the validation steps Copilot took. When that PR is ready, developers can ask Copilot for further changes by commenting on the pull request or using the repository Agents tab session. That keeps a human in the merge path even though the agent explored the codebase and re-ran CodeQL.
AI Credit usage for both features shows under the “AI usage” section of enterprise billing as the “Advanced Security” product, and admins can set SKU-level budgets for Code Security AI credits. That billing detail matters for security teams who already cap Actions minutes and do not want unbounded agent remediation loops.
GitHub keeps both AI features outside the merge gate
The two launches share a design rule: AI does the work, but a person or a deterministic check decides what ships. Agentic autofix can roam a codebase and rewrite files, yet its output is a draft pull request that has already been tested against CodeQL, a rules-based scanner whose results are repeatable. AI Scan reaches code that CodeQL cannot read, such as Terraform or shell scripts, but its findings are labelled as AI and are not allowed to fail a check.
That split is a sensible answer to the main weakness of language-model security tools, which is that they can be confidently wrong. A false positive that blocked every merge would quickly teach developers to ignore the tool. A fix that passed only the AI’s own judgement would be hard to trust. Keeping CodeQL as the referee for fixes, and keeping AI findings advisory, limits the damage from both errors.
The trade-off is cost and coverage. Fixes for alerts from custom queries or other scanners get no automatic proof, so teams relying on those still need careful human review. And because both features draw on metered AI credits, a security team’s budget settings now decide how much scanning and remediation actually happens.
Coding agents are crowding the pull request
Automated review and coding agents are crowding the same PR surface. TSN covered Anthropic’s Claude Code Review going GA, Gemini 4 Argon in GitHub Copilot, Cline cloud sessions, and Anthropic’s own team moving most code review to machines. GitHub has since taken its Copilot cloud agent further, making it generally available in Slack and Teams. GitHub’s pair of GA features is the platform’s own Code Security answer: agentic remediation for CodeQL, plus advisory AI scanning where CodeQL does not reach.
AI Credit costs and AI Scan false-positive rates are not public
- Typical AI Credit burn for multi-alert autofix batches
- False-positive rates for AI Scan across the newly covered languages
- How often CodeQL revalidation rejects an autofix proposal in practice
Sources
- GitHub Changelog, “Agentic autofix for code scanning alerts general availability”, 15 October 2026
- GitHub Changelog, “AI Scan for pull requests generally available”, 15 October 2026
- GitHub Docs, “About autofix for code scanning”, Enterprise Cloud (read 28 November 2026)
- GitHub Docs, “AI Scan for pull requests”, Enterprise Cloud (read 28 November 2026)
Get TSN’s biggest tech stories, explained.
News and insights across AI, tech, crypto and cybersecurity. Every source linked. Unsubscribe anytime.
Get the newsletterRelated stories
- Anthropic Makes Claude Code Review Generally Available for Team and Enterprise
- Gemini 4 Argon Is Now Generally Available in GitHub Copilot
- Cline v4.1.25 Adds Cloud Sessions That Keep Running After You Close the Editor
Follow @tsnmediahub on X for breaking AI news as it happens.
Follow on X

