AI Aulis

AI NEWS IN ENGLISH · 16 October 2026

The most important AI news every morning. AI writes and checks the stories against the original sources – check important facts in the sources.

← Issue 16 October 2026Paper

GitHub: Copilot fixes code scanning alerts and checks the fix with CodeQL

AI-generated contentWritten by AI

github.blog · 2 sources · Sources published: 15 October 2026

GitHub has made two AI features for code scanning generally available. A Copilot agent fixes security alerts and checks each fix with CodeQL. AI Scan looks for vulnerabilities in pull requests when the code is written in languages that CodeQL does not cover, but its findings do not block merging.

GitHub said in its changelog on 15 October that two AI features for code scanning are now generally available: agentic autofix and AI Scan for pull requests. Code scanning is a GitHub feature that analyses the code in a repository and shows any vulnerabilities it finds as alerts. This article is based on GitHub's own announcements.

According to GitHub, when a user assigns an alert to Copilot, Copilot reviews the relevant files in the codebase and proposes a fix. It then reruns CodeQL, GitHub's static analysis tool, which looks for vulnerabilities without running the code. This lets Copilot confirm that the fix closes the alert. If necessary, it tries again. Finally, it opens a draft pull request, a proposed change that a person reviews. The pull request explains what was fixed, why the alert closes and how the fix was checked. Users can request further changes by commenting on the pull request or in the repository's Agents tab.

Users can assign alerts to Copilot one at a time. They can also select up to 25 alerts from the alert list and have them fixed in a single pull request. Through the REST API, users assign an alert to Copilot by setting copilot-swe-agent[bot] as its assignee. Only alerts on the repository's default branch can be assigned. If an alert has been detected only in a pull request or on another branch, it cannot be assigned to Copilot.

The feature is available to GitHub Code Security and GitHub Advanced Security customers on GitHub Enterprise Cloud. An enterprise administrator must first allow it in Advanced Security policies, after which an organisation or repository administrator can enable it. Copilot must also have a billing method set up. The fixing work consumes AI credits from the Code Security budget as well as GitHub Actions minutes. Once the feature is enabled, the Generate Fix button, which has so far been free to use, disappears from alerts and Assign to Copilot replaces it.

AI Scan complements CodeQL. It looks for vulnerabilities in pull request changes when the code is written in a language or framework that CodeQL does not currently cover. Examples include PHP, Shell/Bash, Terraform HCL configuration, Dockerfiles, Java JSP and C# Blazor. Its findings appear alongside CodeQL results with an AI label and may include an explanation of the risk and a suggested fix.

However, AI Scan findings are advisory only. They do not cause the code scanning check to fail, and ruleset requirements cannot use them to block merging. AI Scan also does not work on pull requests from forks or on pull requests created by Dependabot. It is available in public repositories. Private and internal repositories in an organisation require Code Security or Advanced Security. No Copilot licence is needed, but scanning consumes Code Security AI credits.

Report an error in this story