Skip to content

Commit 563f52e

Browse files
committed
Added feature flag for GHAE
1 parent 1470c60 commit 563f52e

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

content/admin/code-security/managing-github-advanced-security-for-your-enterprise/deploying-github-advanced-security-in-your-enterprise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ When code scanning identifies a problem in a pull request, you can review the hi
253253
code and resolve the alert. For more information, see "[Triaging {% data variables.product.prodname_code_scanning %} alerts in pull requests](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/triaging-code-scanning-alerts-in-pull-requests)."
254254

255255
If you have write permission to a repository you can manage code scanning alerts for that
256-
repository. With write permission to a repository, {% ifversion ghes < 3.6 or ghae %}you can view, fix, dismiss, or delete alerts {% else %}you can view, fix, or dismiss alerts{% endif %} for potential vulnerabilities or errors in your repository's code. For more information, see "[Managing code scanning alerts for your repository](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository)."
256+
repository. With write permission to a repository, {% if delete-code-scanning-alerts %}you can view, fix, dismiss, or delete alerts {% else %}you can view, fix, or dismiss alerts{% endif %} for potential vulnerabilities or errors in your repository's code. For more information, see "[Managing code scanning alerts for your repository](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository)."
257257

258258
#### Generate reports of {% data variables.product.prodname_code_scanning %} alerts
259259

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Managing code scanning alerts for your repository
33
shortTitle: Manage alerts
4-
intro: 'From the security view, {% ifversion ghes < 3.6 or ghae %}you can view, fix, dismiss, or delete alerts {% else %}you can view, fix, or dismiss alerts{% endif %} for potential vulnerabilities or errors in your project''s code.'
4+
intro: 'From the security view, {% if delete-code-scanning-alerts %}you can view, fix, dismiss, or delete alerts {% else %}you can view, fix, or dismiss alerts{% endif %} for potential vulnerabilities or errors in your project''s code.'
55
product: '{% data reusables.gated-features.code-scanning %}'
66
permissions: 'If you have write permission to a repository you can manage {% data variables.product.prodname_code_scanning %} alerts for that repository.'
77
versions:
@@ -175,9 +175,9 @@ Alerts may be fixed in one branch but not in another. You can use the "Branch" f
175175

176176
{% endnote %}
177177
{% endif %}
178-
## Dismissing {% ifversion ghes < 3.6 or ghae %}or deleting{% endif %} alerts
178+
## Dismissing {% if delete-code-scanning-alerts %}or deleting{% endif %} alerts
179179

180-
There are two ways of closing an alert. You can fix the problem in the code, or you can dismiss the alert. {% ifversion ghes < 3.6 or ghae %}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.{% endif %}
180+
There are two ways of closing an alert. You can fix the problem in the code, or you can dismiss the alert. {% if delete-code-scanning-alerts %}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.{% endif %}
181181

182182
Dismissing an alert is a way of closing an alert that you don't think needs to be fixed. {% data reusables.code-scanning.close-alert-examples %} You can dismiss alerts from {% data variables.product.prodname_code_scanning %} annotations in code, or from the summary list within the **Security** tab.
183183

@@ -189,18 +189,18 @@ When you dismiss an alert:
189189
- The reason why you closed the alert is recorded.
190190
- Next time {% data variables.product.prodname_code_scanning %} runs, the same code won't generate an alert.
191191

192-
{% ifversion ghes < 3.6 or ghae %}When you delete an alert:
192+
{% if delete-code-scanning-alerts %}When you delete an alert:
193193

194194
- It's deleted in all branches.
195195
- The alert is removed from the number of current alerts for your project.
196196
- It is _not_ added to the "Closed" list in the summary of alerts.
197197
- If the code that generated the alert stays the same, and the same {% data variables.product.prodname_code_scanning %} tool runs again without any configuration changes, the alert will be shown again in your analysis results.{% endif %}
198198

199-
To dismiss {% ifversion ghes < 3.6 or ghae %}or delete{% endif %} alerts:
199+
To dismiss {% if delete-code-scanning-alerts %}or delete{% endif %} alerts:
200200

201201
{% data reusables.repositories.navigate-to-repo %}
202202
{% data reusables.repositories.sidebar-security %}
203-
{% data reusables.repositories.sidebar-code-scanning-alerts %}{% ifversion ghes < 3.6 or ghae %}
203+
{% data reusables.repositories.sidebar-code-scanning-alerts %}{% if delete-code-scanning-alerts %}
204204
1. If you have admin permissions for the repository, and you want to delete alerts for this {% data variables.product.prodname_code_scanning %} tool, select some or all of the check boxes and click **Delete**.
205205

206206
![Deleting alerts](/assets/images/help/repository/code-scanning-delete-alerts.png)

content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/triaging-code-scanning-alerts-in-pull-requests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ An alternative way of closing an alert is to dismiss it. You can dismiss an aler
9999

100100
{% data reusables.code-scanning.false-positive-fix-codeql %}
101101

102-
For more information about dismissing alerts, see {% ifversion ghes < 3.6 or ghae %}"[Managing {% data variables.product.prodname_code_scanning %} alerts for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#dismissing-or-deleting-alerts)."{% else %} "[Managing {% data variables.product.prodname_code_scanning %} alerts for your repository](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository#dismissing--alerts)."{% endif %}
102+
For more information about dismissing alerts, see {% if delete-code-scanning-alerts %}"[Managing {% data variables.product.prodname_code_scanning %} alerts for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#dismissing-or-deleting-alerts)."{% else %} "[Managing {% data variables.product.prodname_code_scanning %} alerts for your repository](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository#dismissing--alerts)."{% endif %}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Tracking removing ability to delete code scanning alerts: ghae-issue-6776
2+
# https://github.com/github/docs-content/issues/6776
3+
4+
versions:
5+
ghae: '*'
6+
ghes: '<3.6'

0 commit comments

Comments
 (0)