cd /news/ai-agents/github-copilot-can-now-fix-up-to-25-… · home › topics › ai-agents › article
[ARTICLE · art-150685] src=github.blog ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

GitHub Copilot can now fix up to 25 code scanning alerts in one pull request

GitHub made agentic autofix for code scanning alerts generally available, letting Copilot remediate up to 25 alerts in a single pull request by exploring relevant files, proposing a fix, and rerunning CodeQL to confirm the alert is closed before opening a draft PR. The feature is available to GitHub Code Security and GitHub Advanced Security customers on GitHub Enterprise Cloud, including with data residency, and requires an enterprise administrator to enable the new "Agentic autofix" policy in Advanced Security policies plus a defined Copilot billing method. Agentic autofix consumes AI Credits from the Code Security budget and GitHub Actions minutes, and replaces the free "Generate Fix" option with an "Assign to Copilot" button on alerts on the repository's default branch.

by read2 min views14 publishedOct 15, 2026
GitHub Copilot can now fix up to 25 code scanning alerts in one pull request
Image: GitHub Changelog

Agentic autofix for code scanning alerts is now generally available. It remediates alerts by working across your codebase the way a developer would: it explores relevant files, proposes a fix, and reruns CodeQL to confirm the fix closes the alert before opening a pull request for your review. Agentic autofix is available to GitHub Code Security and GitHub Advanced Security customers on GitHub Enterprise Cloud, including GitHub Enterprise Cloud with data residency.

How it works #

When you assign a code scanning alert to Copilot, it:

  • Explores relevant files across your codebase.
  • Generates a proposed fix.
  • Validates the fix works by rerunning CodeQL.
  • Iterates if needed, then opens a draft pull request ready for your review.

The pull request includes a summary of the fix, why it closes the alert, and the validation steps Copilot took to confirm that it works. When the pull request containing the fix is ready, you can instruct Copilot to make further changes to it by commenting on the pull request or interacting with the session in the Agents tab of your repository.

How to use it #

When enabled, agentic autofix replaces the free Generate Fix option on individual code scanning alerts with an Assign to Copilot button.

You can use agentic autofix:

  • From any code scanning alert on the repository’s default branch, by assigning the alert to Copilot.
  • In the list of security alerts in your repository or security campaign, by selecting up to 25 alerts for Copilot to fix together in a single pull request.
  • Via the Update a Code Scanning Alert REST API by settingassignees to["copilot-swe-agent[bot]"] .

Agentic autofix supports code scanning alerts on the repository’s default branch. Alerts detected only on pull requests or other branches cannot be assigned to Copilot.

Access #

Agentic autofix requires an enterprise administrator to enable access to it via the new “Agentic autofix” policy in Advanced Security policies.

Once the policy is enabled by an enterprise administrator, an organization or repository administrator can turn on agentic autofix in the Code Security settings for the organization or the repository.

Access also requires a Copilot billing method to be defined.

Billing #

Agentic autofix for code scanning alerts consumes AI Credits from your Code Security budget and GitHub Actions minutes. AI Credit usage will be displayed in the “AI usage” section of enterprise billing and licensing as the “Advanced Security” product. You can also set SKU level budgets for Code Security AI credits. Learn more about Copilot usage-based billing.

## [Learn more](#learn-more)

Learn more about [agentic autofix in the documentation](https://docs.github.com/enterprise-cloud@latest/code-security/concepts/code-scanning/autofix-for-code-scanning).

Join the discussion within the GitHub Community.

── more in #ai-agents 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/github-copilot-can-n…] indexed:0 read:2min 2026-10-15 · —