Sample - GitHub REST API
GET/orgs/{org}/secret-scanning/pattern-configurations

List organization pattern configurations

Lists the secret scanning pattern configurations for an organization.

Personal access tokens (classic) need the read:org scope to use this endpoint.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
orgstringrequired
The organization name. The name is not case sensitive.

3 status codes
200Response
pattern_config_versionstringoptional
The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
provider_pattern_overridesarray<object>optional
Overrides for partner patterns.
custom_pattern_overridesarray<object>optional
Overrides for custom patterns defined by the organization.
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned: Forbidden. A 404 is returned: Resource not found.