Sample - GitHub REST API
GET/enterprises/{enterprise}/actions/oidc/customization/properties/repo

List OIDC custom property inclusions for an enterprise

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.

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

1 parameter
enterprisestringrequired
The slug version of the enterprise name.

3 status codes
200A JSON array of OIDC custom property inclusions
custom_property_namestringrequired
The name of the custom property that is included in the OIDC token
inclusion_sourcestringrequired
Whether the inclusion was defined at the organization or enterprise level
Allowed:organizationenterprise
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.