repo
scope or security_events
scope.public_repo
scope.secret_scanning_alerts
read permission to use this endpoint.curl --location --request GET 'https://api.github.com/repos///secret-scanning/alerts//locations'
[
{
"details": {
"blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
"blob_url": "string",
"commit_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
"commit_url": "string",
"end_column": 0,
"end_line": 0,
"path": "/example/secrets.txt",
"start_column": 0,
"start_line": 0
},
"type": "commit"
}
]
number
field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts
operation.