list_secret_scanning_alerts
Retrieve secret-scanning alerts for a repository to flag exposed credentials, filterable by state, resolution, and secret type.
Instructions
List secret-scanning alerts for a repository. Requires security_events PAT scope. Docs: https://docs.github.com/en/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-a-repository
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "list_secret_scanning_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization login) | |
| state | No | Filter by state. | |
| per_page | No | ||
| resolution | No | Comma-separated list of resolutions to filter by. | |
| secret_type | No | Comma-separated list of secret types to filter by. |