github_code_scanning_list_recent_analyses
List code scanning analyses for a GitHub repository, with options to filter by tool, pull request, branch, or SARIF upload ID.
Instructions
List code scanning analyses for a repository
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | owner | |
| repo | Yes | repo | |
| tool_name | No | The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. | |
| tool_guid | No | The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. | |
| page | No | The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." | |
| per_page | No | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." | |
| pr | No | The number of the pull request for the results you want to list. | |
| ref | No | The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`. | |
| sarif_id | No | Filter analyses belonging to the same SARIF upload. | |
| direction | No | The direction to sort the results by. | |
| sort | No | The property by which to sort the results. |