repos
code-scanning
Lists code scanning alerts.
To use this endpoint, you must use an access token with the security_events
scope or, for alerts from public repositories only, an access token with the public_repo
scope.
GitHub Apps must have the security_events
read
permission to use this endpoint.
The response includes a most_recent_instance
object.
This provides details of the most recent instance of this alert
for the default branch (or for the specified Git reference if you used ref
in the request).
List code scanning alerts for a repository