Code scanning alerts can be assigned to individual users [GA] (#58647)
This commit is contained in:
@@ -70,13 +70,28 @@ The creation workflow is the same for all campaigns, but you will notice a few d
|
|||||||
|
|
||||||
## Assigning alerts{% ifversion security-campaigns-assign-to-cca %} to users and {% data variables.copilot.copilot_coding_agent %}{% endif %}
|
## Assigning alerts{% ifversion security-campaigns-assign-to-cca %} to users and {% data variables.copilot.copilot_coding_agent %}{% endif %}
|
||||||
|
|
||||||
|
{% ifversion code-secret-alert-assignees-ga %}{% elsif ghes = 3.20 %}
|
||||||
|
|
||||||
>[!NOTE]
|
>[!NOTE]
|
||||||
> The option to assign {% data variables.product.prodname_code_scanning %} and {% data variables.product.prodname_secret_scanning %} alerts is currently in public preview and is subject to change.
|
> The option to assign {% data variables.product.prodname_code_scanning %} and {% data variables.product.prodname_secret_scanning %} alerts is currently in public preview and is subject to change.
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
You can assign a {% data variables.product.prodname_code_scanning %} or {% data variables.product.prodname_secret_scanning %} alert to any user who has **write** access for the repository.
|
You can assign a {% data variables.product.prodname_code_scanning %} or {% data variables.product.prodname_secret_scanning %} alert to any user who has **write** access for the repository.
|
||||||
|
|
||||||
If the assignee for a {% data variables.product.prodname_secret_scanning %} alert **cannot view the alert list**, their permissions are temporarily raised for that alert. Any additional permissions are revoked when they are unassigned from the alert.
|
If the assignee for a {% data variables.product.prodname_secret_scanning %} alert **cannot view the alert list**, their permissions are temporarily raised for that alert. Any additional permissions are revoked when they are unassigned from the alert.
|
||||||
|
|
||||||
|
{% ifversion code-secret-alert-assignees-ga %}
|
||||||
|
|
||||||
|
{% data variables.product.github %} notifies users:
|
||||||
|
|
||||||
|
* When they are assigned to an alert
|
||||||
|
* When that alert is dismissed
|
||||||
|
|
||||||
|
For {% data variables.product.prodname_code_scanning %}, you can also perform some of these operations programmatically using the REST API, such as assigning or unassigning users to alerts, and filtering alerts by assignee. For more information, see [AUTOTITLE](/rest/reference/code-scanning) in the REST API documentation. Additionally, webhooks are available to notify you when an alert is assigned or an assignment is removed.
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% ifversion security-campaigns-assign-to-cca %}
|
{% ifversion security-campaigns-assign-to-cca %}
|
||||||
|
|
||||||
If an autofix has been generated for alerts in a security campaign, you can select those alerts and assign them to {% data variables.copilot.copilot_coding_agent %}. {% data variables.product.prodname_copilot_short %} will create a pull request and add you as a requested reviewer. See [AUTOTITLE](/code-security/code-scanning/managing-code-scanning-alerts/fixing-alerts-in-security-campaign#assigning-alerts-to-copilot-coding-agent).
|
If an autofix has been generated for alerts in a security campaign, you can select those alerts and assign them to {% data variables.copilot.copilot_coding_agent %}. {% data variables.product.prodname_copilot_short %} will create a pull request and add you as a requested reviewer. See [AUTOTITLE](/code-security/code-scanning/managing-code-scanning-alerts/fixing-alerts-in-security-campaign#assigning-alerts-to-copilot-coding-agent).
|
||||||
|
|||||||
6
data/features/code-secret-alert-assignees-ga.yml
Normal file
6
data/features/code-secret-alert-assignees-ga.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Reference: #20436
|
||||||
|
# Assignees for code scanning and secret scanning alerts [GA]
|
||||||
|
versions:
|
||||||
|
fpt: '*'
|
||||||
|
ghec: '*'
|
||||||
|
ghes: '> 3.20'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# Reference: #18652 and #17468
|
# Reference: #18652 and #17468
|
||||||
# Assignees for code scanning and secret scanning alerts
|
# Assignees for code scanning and secret scanning alerts (public preview)
|
||||||
versions:
|
versions:
|
||||||
fpt: '*'
|
fpt: '*'
|
||||||
ghec: '*'
|
ghec: '*'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{% ifversion code-secret-alert-assignees %}
|
{% ifversion code-secret-alert-assignees %}
|
||||||
|
|
||||||
In addition, you will receive a notification if someone assigns a {% data variables.product.prodname_secret_scanning %} alert to you, see [Assigning alerts](/code-security/securing-your-organization/fixing-security-alerts-at-scale/about-security-campaigns#assigning-alerts).
|
In addition, you will receive a notification if someone assigns a {% data variables.product.prodname_code_scanning %} or a {% data variables.product.prodname_secret_scanning %} alert to you, see [Assigning alerts](/code-security/securing-your-organization/fixing-security-alerts-at-scale/about-security-campaigns#assigning-alerts).
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user