apicheats.dev Cheat sheet Raw .md
PATCH

Try PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} — GitHub API

GitHub playground

Update a secret scanning alert

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

5 body fields
  • state · required · string — Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.
  • resolution · optional · string — **Required when the `state` is `resolved`.** The reason for resolving the alert.
  • resolution_comment · optional · string — An optional comment when closing or reopening an alert. Cannot be updated or deleted.
  • assignee · optional · string — The username of the user to assign to the alert. Set to `null` to unassign the alert.
  • validity · optional · string — Sets the validity of the secret scanning alert. Can be `active`, `inactive`, or `null` to clear the override.