November 23rd, 2026
0 reactions

Agentic Autofix for GitHub Advanced Security for Azure DevOps is in public preview

Senior Product Manager

Today, we’re announcing the public preview of Agentic Autofix for GitHub Advanced Security for Azure DevOps.

Thank you to everyone who participated in our June private preview and our October limited preview. Your feedback helped us expand alert coverage, improve failure handling, and prepare the experience for broader rollout.

With Agentic Autofix, cut time to remediate code vulnerabilities with ready-to-review, AI-generated fixes built into the developer workflow.

Here’s how to get started.

Enable Copilot Autofix

Administrators can enable Copilot Autofix at the organization, project, or repository level. First, open Organization settings > Repositories, or use Project settings > Repositories for a project or single repository.

Under Advanced Security, select Autofix for security alerts. Alternatively, if you use standalone Code Security, select Options to open the Code Security features panel, select Autofix for security alerts, and select Apply.

Screenshot of enabling Autofix for security alerts in repository settingse

One setting covers code scanning alerts from CodeQL and third-party SARIF tools, plus dependency vulnerability alerts. However, enabling Autofix doesn’t trigger scans or generate fixes automatically, so your team chooses which alerts to address.

Guide fixes with instructions and skills

Instead of returning a static single-line snippet, Agentic Autofix uses the Copilot coding agent to explore your repository context. As a result, the agent can review and refine proposed changes across multiple files before opening a pull request.

Check instructions and skills into .github or .agents directories to customize how the agent writes fixes.

Custom instructions in .github/copilot-instructions.md define your coding standards, naming conventions, and test commands. For example, instructions can direct the agent to use your approved input-validation helper rather than adding custom validation logic.

Similarly, skills in .github/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md capture repeatable remediation workflows. For instance, a dependency-update skill can specify your internal package-update procedure and compatibility checks.

Generate and review a fix

To generate a fix, open Repos > Advanced Security, select a supported code scanning or dependency alert, and select Generate fix.

Next, Copilot Autofix queues an Azure Pipelines job under a dedicated GitHub Copilot ({organization}) identity. Once ready, it opens a pull request with the proposed change and a summary of the alert.

autofix generate fix image

Every generated pull request includes a Copilot Autofix label so reviewers can spot and filter AI-generated fixes.

autofix pull request list

If a run hits a transient error or a repository policy block, the alert detail view surfaces a clear failure state. Fix the underlying issue, and then select Retry fix directly from the alert.

Copilot Autofix never merges changes on its own, and not every alert produces a fix. Always review the diff, run your build and tests, and merge through your normal pull request workflow. Afterward, re-run your scanner on the target branch to confirm the alert closes.

Billing and cost management

Your GitHub Advanced Security for Azure DevOps or standalone Code Security license includes access to Copilot Autofix. We bill fix generation usage to the Azure subscription linked to your Azure DevOps organization. Each fix consumes tokens that we convert into GitHub AI credits at $0.01 USD per credit. Cost varies with code context size and fix complexity.

Charges appear under the AI Credit for AzDO GAC meter in Azure Cost Management. Additionally, each charge includes _organizationname_ and _projectname_ tags, so you can filter by organization and group spend by project in Cost analysis.

You can also configure Azure budget alerts for the meter or specific project tags. Azure then notifies you by email when actual or forecasted spend reaches your threshold.

autofix cost by project image

What’s next

Next on our roadmap, we’re building batch alert selection to remediate multiple alerts in a single pull request. Track other upcoming features on the Azure DevOps public roadmap.

Get started today

Enable Copilot Autofix in your repository settings and try it on your next code scanning or dependency alert.

For setup details, policy configuration, and troubleshooting, see the Copilot Autofix documentation and billing overview.

Share your feedback in the comments below or on the Azure DevOps Developer Community.

Author

Laura Jiang
Senior Product Manager

0 comments