github_secret_scanning_list_repo_custom_patterns
List custom secret scanning patterns for a repository to filter by state, push protection, and sort results for auditing or configuration review.
Instructions
List repository custom patterns
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": "github_secret_scanning_list_repo_custom_patterns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | repo | |
| sort | No | The property to sort the results by. | |
| after | No | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." | |
| owner | Yes | owner | |
| state | No | Filter custom patterns by state. When absent, returns patterns in all states. | |
| before | No | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." | |
| direction | No | The direction to sort the results by. | |
| push_protection | No | Filter custom patterns by whether push protection is enabled. When absent, returns patterns regardless of push protection status. |