/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}Update a secret scanning alert
Updates the status of a secret scanning alert in an eligible repository.
You can also use this endpoint to assign or unassign an alert to a user who has write access to the repository.
The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
OAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
A 400 is returned: Bad request, resolution comment is invalid or the resolution was not changed. A 403 is returned: Delegated alert dismissal is enabled and the authenticated user is not a valid reviewer. A 404 is returned: Repository is public, or secret scanning is disabled for the repository, or the resource is not found. A 422 is returned: State does not match the resolution or resolution comment, assignee does not have write access to the repository, or the requested validity change could not be applied to this alert. A 503 is returned: Service unavailable.