{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Lists secret scanning custom patterns for a repository.\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.\n\nFine-grained access tokens require the `administration:write` repository permission.","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository without the `.git` extension. The name is not case sensitive."}},"required":["owner","repo"],"additionalProperties":false},"query":{"type":"object","properties":{"state":{"type":"string","enum":["published","unpublished"],"description":"Filter custom patterns by state. When absent, returns patterns in all states."},"push_protection":{"type":"string","enum":["enabled","disabled"],"description":"Filter custom patterns by whether push protection is enabled. When absent, returns patterns regardless of push protection status."},"sort":{"type":"string","enum":["created","updated","name"],"default":"created","description":"The property to sort the results by."},"direction":{"type":"string","enum":["asc","desc"],"default":"desc","description":"The direction to sort the results by."},"before":{"type":"string","description":"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).\""},"after":{"type":"string","description":"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).\""}},"required":[],"additionalProperties":false}},"required":["path"],"additionalProperties":false},"name":"List repository custom patterns","id":"github.secret-scanning.list-repo-custom-patterns","example":{"path":{"owner":"octocat","repo":"hello-world"}},"maxRequests":1,"summary":false}}