You can disable Copilot Autofix for an enterprise, organization, or repository.
This article covers disabling Copilot Autofix. Agentic Autofix has separate access controls. To disable agentic autofix, see Managing access to agentic autofix for code scanning.
For enterprise-owned organizations, controls for Copilot Autofix follow this hierarchy:
For standalone organizations, the organization and repository controls apply without an enterprise policy.
Disabling Copilot Autofix at any level closes all open suggestions that it added as comments on code scanning alerts in affected pull requests. If you later re-enable it, suggestions are generated only for new pull requests. To generate suggestions for existing pull requests, re-run code scanning security analysis.
Note
Copilot Autofix is an integral part of GitHub Code Quality and will continue to run on code quality results even when it is disabled for code security results.
Enterprise owners can disallow Copilot Autofix for security results across all organizations and repositories in their enterprise.
Organization owners can disable Copilot Autofix for all repositories in their organization. For enterprise-owned organizations, this setting is only available if the enterprise allows Copilot Autofix.
In the upper-right corner of GitHub, click your profile picture, then click Organizations.
Select an organization by clicking on it.
Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

In the " Security and quality" section of the sidebar, click Advanced Security then Global settings.
Under the "Code scanning" section, set Copilot Autofix to Off.
Repository administrators can disable Copilot Autofix if their organization enables it. For enterprise-owned organizations, this setting is only available if the enterprise also allows Copilot Autofix.
On GitHub, navigate to the main page of the repository.
Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

In the "Security and quality" section of the sidebar, click Advanced Security.
In the "Code Security" section, set Copilot Autofix to Off.