v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
secret-scanning

Review a bypass request for secret scanning

Approve or deny a request to bypass secret scanning push protection in a repository.

Delegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint. Personal access tokens (classic) need the security_events scope to use this endpoint.

patch/repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

bypass_request_numberinteger required

The number that identifies the bypass request in a repository.

Request body

status'approve' | 'reject' required

The review action to perform on the bypass request.

messagestring required

A message to include with the review. Has a maximum character length of 2048.

Response

The review of the bypass request.

bypass_review_idinteger

ID of the bypass review.