GitHub security extension brings code scanning alerts to the Copilot app
GitHub’s security extension, now in public preview, shows a repository’s code scanning alerts in the GitHub Copilot app. Users can ask Copilot to explain or fix an alert, and can also dismiss an alert directly from the app.
GitHub announced a new security extension for the Copilot app on X on 15 November. The extension is in public preview, and GitHub’s documentation says it may still change.
The extension adds a Security canvas to the app. The canvas lists the repository’s open code scanning alerts by severity. Code scanning searches source code for vulnerabilities and records its findings as alerts. The extension does not show Dependabot or secret scanning alerts.
Fix changes only the local copy
Each alert has two buttons. Explain asks the session’s Copilot agent to explain the vulnerability, and Fix asks the agent to change the code. Both buttons also work on several alerts at once. The extension’s tools follow the app’s tool permission settings, so Copilot asks for permission whenever the settings require it.
Fix changes only the local working copy. Copilot does not commit the changes, push them to GitHub or open a pull request. The documentation says users must review the changes and run the project’s tests themselves. A local fix also does not close the alert. Only once the fix reaches the branch the alert applies to does a new code scanning run determine whether the alert is resolved.
Dismissing an alert, by contrast, changes the alert on GitHub. Users need permission in the repository to dismiss code scanning alerts, and must record a reason and a comment. If a user’s role requires approval, the extension sends a dismissal request. The alert then stays open until an authorised reviewer approves the request on GitHub.
Reviewing changes before a pull request
The extension can also review a session’s pending changes before a pull request is opened. Users start the review with the Start review button or the /security-review command. GitHub said the review covers only the changes. It is not a full repository security audit and does not replace code scanning. Its findings do not appear on GitHub as code scanning alerts.
Explain, Fix and the review use the model selected in the app and consume AI credits like other prompts. Browsing and dismissing alerts do not use AI.
Availability and requirements
The Copilot app is available on all Copilot plans. On Copilot Business and Enterprise, the organisation’s settings must allow use of the app. If a company restricts plugin installation through managed settings, installing the github-security plugin requires permission. Alerts appear only if the repository has code scanning enabled and the user has access to the alerts. Private repositories also require a GitHub Code Security licence. The change review requires neither code scanning nor a Code Security licence.
The extension does not work with GitHub Enterprise Server. It works with repositories on GitHub.com and GitHub Enterprise Cloud, including with data residency. Users install it as the github-security plugin from the app’s Customize menu or with Copilot CLI.
Read more: How an agent works · Agent map