Answer: To use Copilot Autofix for code scanning alerts, open an alert on GitHub and click Generate fix, which displays when Copilot can resolve the alert. Copilot Autofix then generates a potential fix and shows the code changes in the alert, which you can commit to a new or existing branch, test, and open a pull request to move the changes to the main branch. Status: Confirmed Entry: tool/github-copilot/permissions-and-security/copilot-autofix-code-scanning Revision: 3 Digest: sha256:3d159c48736767c4 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:34:59Z Last changed: 2026-11-18T13:14:27Z (final step: open a pull request to move the changes to the main branch → —) Last verified: 2026-11-20T13:17:38Z Next check: 2026-11-21T13:17:38Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of action | Click Generate fix | [1] | 2026-11-20 availability | public repositories and repositories with a license for GitHub Code Security | [1] | 2026-11-20 first step | Open an alert on GitHub | [1] | 2026-11-20 commit options | a new branch or an existing branch | [1] | 2026-11-20 alert closure | the alert closes automatically | [1] | 2026-11-20 Sources: [1] GitHub. "Reducing security debt in your company with GitHub Copilot - GitHub Docs". https://docs.github.com/en/copilot/tutorials/roll-out-at-scale/drive-downstream-impact/reduce-security-debt Role: primary. Accessed: 2026-11-20T13:17:38Z Quote: "Click Generate fix ." (Supports: action) Quote: "It is available in public repositories and repositories with a license for GitHub Code Security." (Supports: availability) Quote: "Open an alert on GitHub." (Supports: first step) Quote: "You can commit this code change to a new branch or an existing branch." (Supports: commit options) Quote: "After you move the changes to the main branch and code scanning verifies the fix, the alert closes automatically." (Supports: alert closure) Snapshot SHA-256: 70f3855e30af90fb3b67fea9fec238aa2ae79c333749d63e4ae43cd43a56e31b (captured 2026-11-18T13:14:26Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:14:27Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:17:38Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:17:38Z Last attempt: 2026-11-20T13:17:38Z Notes and limitations: Extracted automatically from a single official source (section "Use Copilot Autofix for code scanning alerts"). Related: https://latestn.com/tool/github-copilot/permissions-and-security/create-security-policy-with-copilot How do I use GitHub Copilot to create a security policy for my repository? https://latestn.com/tool/github-copilot/permissions-and-security/custom-agents-access-requirements Who can use custom agents for GitHub Copilot cloud agent? https://latestn.com/tool/github-copilot/permissions-and-security/disable-local-sandboxing-cli How do I disable local sandboxing in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/permissions-and-security/content-exclusion-review-permissions Who can review changes to content exclusions for GitHub Copilot? https://latestn.com/tool/github-copilot/permissions-and-security/control-access-computer-use How do I control access for computer use in GitHub Copilot? https://latestn.com/tool/github-copilot/permissions-and-security/control-browser-use-access How do I control access to browser use in GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:14:27Z | changed | final step: open a pull request to move the changes to the main branch → — | [1] 2026-11-18T13:14:27Z | changed | action: Generate fix → Click Generate fix | [1] 2026-11-18T13:14:27Z | changed | first step: Open an alert on GitHub. → Open an alert on GitHub | [1] 2026-11-16T13:02:19Z | changed | final step: — → open a pull request to move the changes to the main branch | [1] 2026-11-16T13:02:19Z | changed | first step: Open an alert on GitHub → Open an alert on GitHub. | [1] 2026-11-16T13:02:19Z | changed | action: Click Generate fix → Generate fix | [1] 2026-11-13T03:34:59Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/permissions-and-security/copilot-autofix-code-scanning/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/copilot-autofix-code-scanning POST: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/copilot-autofix-code-scanning with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/copilot-autofix-code-scanning?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use GitHub Copilot Autofix for code scanning alerts? Revision 3, last verified 2026-11-20T13:17:38Z. https://latestn.com/tool/github-copilot/permissions-and-security/copilot-autofix-code-scanning (accessed 2026-11-21T09:59:52Z). @misc{LatestN_tool_github_copilot_permissions_and_security_copilot_autofix_code_scanning_r3, title = {How do I use GitHub Copilot Autofix for code scanning alerts?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/permissions-and-security/copilot-autofix-code-scanning}}, note = {Revision 3; digest sha256:3d159c48736767c4; last verified 2026-11-20T13:17:38Z; accessed 2026-11-21T09:59:52Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/permissions-and-security/copilot-autofix-code-scanning