Agentic autofix for code scanning alerts general availability #209845
ebndev
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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:
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:
assigneesto["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 about agentic autofix in the documentation.
Let us know what you think in the comments below.
All reactions