| title | Linking code scanning alerts to GitHub issues | ||
|---|---|---|---|
| shortTitle | Track alerts in issues | ||
| intro | Create or connect {% data variables.product.github %} issues to {% data variables.product.prodname_code_scanning %} alerts to track security fixes in your team's workflow. | ||
| permissions | People with write access for the repository can link {% data variables.product.prodname_code_scanning %} alerts to issues. | ||
| versions |
|
||
| contentType | how-tos | ||
| category |
|
{% data reusables.code-scanning.alert-tracking-with-issues-preview-note %}
{% data reusables.code-scanning.enterprise-enable-code-scanning %}
When {% data variables.product.prodname_code_scanning %} identifies a vulnerability, you can link it to a new or existing {% data variables.product.github %} issue. This makes security fixes visible in your planning and project boards alongside your team's regular development work. For more information about how alert tracking works, see AUTOTITLE.
Create a new issue directly from a {% data variables.product.prodname_code_scanning %} alert, pre-populated with vulnerability details.
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} {% data reusables.repositories.sidebar-code-scanning-alerts %} {% data reusables.code-scanning.explore-alert %}
- On the right of the alert page, click Tracking.
- From the dropdown list, select Create issue.
- Select the repository to create the issue in.
- If applicable, select the template to use for your new issue.
- Fill in the issue, providing as much detail as possible.
- Optionally, assign the issue to a team member, add labels, or add it to a project.
- Click Create.
The newly created issue automatically links to the alert. View it by clicking the issue icon below the alert name.
Connect an existing issue to a {% data variables.product.prodname_code_scanning %} alert.
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} {% data reusables.repositories.sidebar-code-scanning-alerts %} {% data reusables.code-scanning.explore-alert %}
- On the right of the alert page, click Tracking.
- From the dropdown list, select Add existing {% data variables.product.github %} issue.
- Search by issue number or title, or select a different repository by clicking the Back icon.
- Click the issue you want to link.
You can link to issues in different repositories, as long as you have access and {% data variables.product.prodname_github_issues %} is enabled.
Once you link an issue to an alert, you can view the linked issue in two places:
- On the alert detail page: Click the issue icon below the alert name to navigate to the full issue details.
- In the list of {% data variables.product.prodname_code_scanning %} alerts: Linked issues appear alongside their corresponding alerts in the main alerts list view.
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} {% data reusables.repositories.sidebar-code-scanning-alerts %} {% data reusables.code-scanning.explore-alert %}
- On the right of the alert page, click Tracking.
- Click Change or remove issue.
When you unlink an issue from an alert, the link is removed from the alert page and alert list. The issue itself remains unchanged.