secret-scanning
Get an alert dismissal request for secret scanning
Gets a specific request to dismiss a secret scanning alert in a repository.
Delegated alert dismissal must be enabled on the repository and the user must be an org admin, security manager, or have the "Review and manage secret scanning alert dismissal requests" permission to access this endpoint. Personal access tokens (classic) need the security_events scope to use this endpoint.
get/repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_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.
alert_numberinteger required
The number that identifies the secret scanning alert in a repository.
Response
A single dismissal request.
Example response
{
"url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/1",
"html_url": "https://github.com/octo-org/smile/security/secret-scanning/17"
}