Skip to content

Commit efd8c3a

Browse files
committed
moving location of paragraph
1 parent 88a46c8 commit efd8c3a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,15 @@ You can use{% ifversion fpt or ghes > 3.1 or ghae or ghec %} the free text searc
152152

153153
Alerts may be fixed in one branch but not in another. You can use the "Branch" filter, on the summary of alerts, to check whether an alert is fixed in a particular branch.
154154

155-
{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6249 %}
156-
{% data reusables.code-scanning.filter-non-default-branches %}
157-
{% endif %}
158-
159155
{% ifversion fpt or ghes > 3.1 or ghae or ghec %}
160156
![Filtering alerts by branch](/assets/images/help/repository/code-scanning-branch-filter.png)
161157
{% else %}
162158
![Filtering alerts by branch](/assets/images/enterprise/3.1/help/repository/code-scanning-branch-filter.png)
163159
{% endif %}
164160

161+
{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6249 %}
162+
{% data reusables.code-scanning.filter-non-default-branches %}
163+
{% endif %}
165164
## Dismissing or deleting alerts
166165

167166
There are two ways of closing an alert. You can fix the problem in the code, or you can dismiss the alert. Alternatively, if you have admin permissions for the repository, you can delete alerts. Deleting alerts is useful in situations where you have set up a {% data variables.product.prodname_code_scanning %} tool and then decided to remove it, or where you have configured {% data variables.product.prodname_codeql %} analysis with a larger set of queries than you want to continue using, and you've then removed some queries from the tool. In both cases, deleting alerts allows you to clean up your {% data variables.product.prodname_code_scanning %} results. You can delete alerts from the summary list within the **Security** tab.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Please note that if you have filtered for alerts on a non-default branch, but the same alerts exist on the default branch, the alert page for any given alert will still only reflect the alert's status on the default branch, even if it conflicts with the status on a non-default branch. For example, an alert that appears in the "Open" list in the summary of alerts for `branch-x` could show a status of "Fixed" on the alert page, if the alert was already fixed on the default branch. You can view the status of the alert for the branch you filtered on in the **Affected branches** section in the right-hand sidebar of the alert page.
1+
Please note that if you have filtered for alerts on a non-default branch, but the same alerts exist on the default branch, the alert page for any given alert will still only reflect the alert's status on the default branch, even if it conflicts with the status on a non-default branch. For example, an alert that appears in the "Open" list in the summary of alerts for `branch-x` could show a status of "Fixed" on the alert page, if the alert was already fixed on the default branch. You can view the status of the alert for the branch you filtered on in the **Affected branches** section on the right side of the alert page.

0 commit comments

Comments
 (0)