Back to the "Repos API" | Back to the navigation
$alerts = $client->api('repos')->secretScanning()->alerts('KnpLabs', 'php-github-api');
https://docs.github.com/en/[email protected]/rest/secret-scanning#get-a-secret-scanning-alert
$alert = $client->api('repos')->secretScanning()->getAlert('KnpLabs', 'php-github-api', $alertNumber);
https://docs.github.com/en/[email protected]/rest/secret-scanning#update-a-secret-scanning-alert
$client->api('repos')->secretScanning()->updateAlert('KnpLabs', 'php-github-api', $alertNumber, [
'state' => 'resolved',
'resolution' => 'wont-fix'
]);
$locations = $client->api('repos')->secretScanning()->locations('KnpLabs', 'php-github-api', $alertNumber);