v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.2 MB
oidc

Create an OIDC custom property inclusion for an enterprise

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.

post/enterprises/{enterprise}/actions/oidc/customization/properties/repo

Path parameters

enterprisestring required

The slug version of the enterprise name.

Request body

custom_property_namestring required

The name of the custom property to include in the OIDC token

Response

OIDC custom property inclusion created

custom_property_namestring required

The name of the custom property that is included in the OIDC token

inclusion_source'organization' | 'enterprise' required

Whether the inclusion was defined at the organization or enterprise level

Example response

{
  "inclusion_source": "organization"
}