list_code_scanning_alerts
Lists code-scanning alerts for a repository. Filter by ref, state, tool, or sort to identify and address security vulnerabilities in your code.
Instructions
List code-scanning alerts for a repository. Requires security_events PAT scope for private repos, public_repo for public. Docs: https://docs.github.com/en/rest/code-scanning/code-scanning#list-code-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_code_scanning_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git ref to filter by (branch/tag/SHA). | |
| page | No | ||
| repo | Yes | Repository name | |
| sort | No | ||
| owner | Yes | Repository owner (user or organization login) | |
| state | No | Filter by alert state. | |
| per_page | No | ||
| direction | No | ||
| tool_name | No | Filter by scanning tool name. |