---
title: "Changes to Update a secret scanning alert"
method: PATCH
path: "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
---

# Changes to Update a secret scanning alert

`PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`

> Every recorded change to this operation, newest first.
> 85 revisions in range; 1 not diffed.

## Timeline

Changed in 8 of 85 revisions.

- **2026-07-10** (2022-11-28) `0bd000ee5faf`: 1 info
- **2026-05-05** (2022-11-28) `e931c3581f42`: 1 info
- **2026-04-22** (2022-11-28) `9b29acd40526`: 1 info
- **2026-04-09** (2022-11-28) `a1ce348995ab`: 1 info
- **2026-04-07** (2022-11-28) `3c3054cd94f0`: 1 info
- **2026-04-02** (2022-11-28) `7ed96b881d6c`: 3 info
- **2026-04-02** (2022-11-28) `c6dda6cbc43e`: 9 info
- **2026-03-25** (2022-11-28) `da449e251ccf`: 1 info

## Changes

- **2026-07-10** (2022-11-28) `0bd000ee5faf`: 1 info
  - added the optional property `metadata` to the response with the `200` status
- **2026-05-05** (2022-11-28) `e931c3581f42`: 1 info
  - added the non-success response with the status `403`
- **2026-04-22** (2022-11-28) `9b29acd40526`: 1 info
  - added the new optional request property `validity`
- **2026-04-09** (2022-11-28) `a1ce348995ab`: 1 info
  - added the optional property `provider_slug` to the response with the `200` status
- **2026-04-07** (2022-11-28) `3c3054cd94f0`: 1 info
  - added the optional property `provider` to the response with the `200` status
- **2026-04-02** (2022-11-28) `7ed96b881d6c`: 3 info
  - added the optional property `closure_request_comment` to the response with the `200` status
  - added the optional property `closure_request_reviewer` to the response with the `200` status
  - added the optional property `closure_request_reviewer_comment` to the response with the `200` status
- **2026-04-02** (2022-11-28) `c6dda6cbc43e`: 9 info
  - added the optional property `first_location_detected/oneOf[#/components/schemas/secret-scanning-location-commit]/html_url` to the response with the `200` status
  - added the optional property `first_location_detected/oneOf[#/components/schemas/secret-scanning-location-issue-body]/html_url` to the response with the `200` status
  - added the optional property `first_location_detected/oneOf[#/components/schemas/secret-scanning-location-issue-comment]/html_url` to the response with the `200` status
  - added the optional property `first_location_detected/oneOf[#/components/schemas/secret-scanning-location-issue-title]/html_url` to the response with the `200` status
  - added the optional property `first_location_detected/oneOf[#/components/schemas/secret-scanning-location-pull-request-body]/html_url` to the response with the `200` status
  - added the optional property `first_location_detected/oneOf[#/components/schemas/secret-scanning-location-pull-request-comment]/html_url` to the response with the `200` status
  - added the optional property `first_location_detected/oneOf[#/components/schemas/secret-scanning-location-pull-request-review-comment]/html_url` to the response with the `200` status
  - added the optional property `first_location_detected/oneOf[#/components/schemas/secret-scanning-location-pull-request-review]/html_url` to the response with the `200` status
  - added the optional property `first_location_detected/oneOf[#/components/schemas/secret-scanning-location-pull-request-title]/html_url` to the response with the `200` status
- **2026-03-25** (2022-11-28) `da449e251ccf`: 1 info
  - added `subschema #3` to the request body `anyOf` list

---

[Operation](https://skmtc.dev/github/apis/rest/docs/repos/:owner/:repo/secret-scanning/alerts/:alert_number/patch.md) · [API](https://skmtc.dev/github/apis/rest.md) · [Page](https://skmtc.dev/github/apis/rest/changes/repos/:owner/:repo/secret-scanning/alerts/:alert_number/patch)
