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.

[!NOTE] The "Enterprise administration" fine-grained permission is not available to callers. To use this API, you must use an OAuth app token or a personal access token (classic).

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

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/enterprises/{enterprise}/actions/oidc/customization/properties/repo
  • Auth: none declared

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"
}

Changes

No recorded changes to this operation across all 23 revisions of this API.