Skip to main content

org_secret_scanning_pattern_configurations

Creates, updates, deletes, gets or lists an org_secret_scanning_pattern_configurations resource.

Overview

Nameorg_secret_scanning_pattern_configurations
TypeResource
Idgithub.secret_scanning.org_secret_scanning_pattern_configurations

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
custom_pattern_overridesarrayOverrides for custom patterns defined by the organization.
pattern_config_versionstringThe 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_overridesarrayOverrides for partner patterns.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_org_pattern_configsselectorgLists the secret scanning pattern configurations for an organization.

Personal access tokens (classic) need the read:org scope to use this endpoint.
update_org_pattern_configsupdateorgUpdates the secret scanning pattern configurations for an organization.

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

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.

SELECT examples

Lists the secret scanning pattern configurations for an organization.

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

SELECT
custom_pattern_overrides,
pattern_config_version,
provider_pattern_overrides
FROM github.secret_scanning.org_secret_scanning_pattern_configurations
WHERE org = '{{ org }}' -- required
;

UPDATE examples

Updates the secret scanning pattern configurations for an organization.

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

UPDATE github.secret_scanning.org_secret_scanning_pattern_configurations
SET
pattern_config_version = '{{ pattern_config_version }}',
provider_pattern_settings = '{{ provider_pattern_settings }}',
custom_pattern_settings = '{{ custom_pattern_settings }}'
WHERE
org = '{{ org }}' --required
RETURNING
pattern_config_version;