Skip to main content

oidc_custom_property_inclusions

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

Overview

Nameoidc_custom_property_inclusions
TypeResource
Idgithub.oidc.oidc_custom_property_inclusions

Fields

The following fields are returned by SELECT queries:

A JSON array of OIDC custom property inclusions

NameDatatypeDescription
custom_property_namestringThe name of the custom property that is included in the OIDC token
inclusion_sourcestringWhether the inclusion was defined at the organization or enterprise level (organization, enterprise) (example: organization)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_oidc_custom_property_inclusions_for_enterpriseselectenterpriseLists the repository custom properties that are included in the OIDC token for repository actions in an enterprise.

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
create_oidc_custom_property_inclusion_for_enterpriseinsertenterprise, custom_property_nameAdds a repository custom property to be included in the OIDC token for repository actions in an enterprise.

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
delete_oidc_custom_property_inclusion_for_enterprisedeleteenterprise, custom_property_nameRemoves a repository custom property from being included in the OIDC token for repository actions in an enterprise.

OAuth app tokens and personal access tokens (classic) need the admin:enterprise 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
custom_property_namestringThe name of the custom property to remove from OIDC token inclusion
enterprisestringThe slug version of the enterprise name.

SELECT examples

Lists the repository custom properties that are included in the OIDC token for repository actions in an enterprise.

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

SELECT
custom_property_name,
inclusion_source
FROM github.oidc.oidc_custom_property_inclusions
WHERE enterprise = '{{ enterprise }}' -- required
;

INSERT examples

Adds a repository custom property to be included in the OIDC token for repository actions in an enterprise.

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

INSERT INTO github.oidc.oidc_custom_property_inclusions (
custom_property_name,
enterprise
)
SELECT
'{{ custom_property_name }}' /* required */,
'{{ enterprise }}'
RETURNING
custom_property_name,
inclusion_source
;

DELETE examples

Removes a repository custom property from being included in the OIDC token for repository actions in an enterprise.

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

DELETE FROM github.oidc.oidc_custom_property_inclusions
WHERE enterprise = '{{ enterprise }}' --required
AND custom_property_name = '{{ custom_property_name }}' --required
;