← All tags

Oidc API Reference

Endpoints to manage GitHub OIDC configuration using the REST API.

8 endpoints tagged oidc, each listing its parameters and possible responses. Search or scroll the index below to jump to a specific endpoint.

No endpoints match your search.

List OIDC custom property inclusions for an enterprise

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

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

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.

Responses

StatusDescriptionHas JSON body
200A JSON array of OIDC custom property inclusionsyes
404Resource not foundyes
403Forbiddenyes

Create an OIDC custom property inclusion for an enterprise

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

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

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.

Responses

StatusDescriptionHas JSON body
201OIDC custom property inclusion createdyes
400Invalid inputno
403Forbiddenyes
422Property inclusion already existsno

Delete an OIDC custom property inclusion for an enterprise

DELETE /enterprises/{enterprise}/actions/oidc/customization/properties/repo/{custom_property_name}

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

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
custom_property_namepathyesThe name of the custom property to remove from OIDC token inclusion

Responses

StatusDescriptionHas JSON body
204OIDC custom property inclusion deletedno
400Invalid inputno
403Forbiddenyes
404Property inclusion not foundno

List OIDC custom property inclusions for an organization

GET /orgs/{org}/actions/oidc/customization/properties/repo

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

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
200A JSON array of OIDC custom property inclusionsyes
404Resource not foundyes
403Forbiddenyes

Create an OIDC custom property inclusion for an organization

POST /orgs/{org}/actions/oidc/customization/properties/repo

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

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
201OIDC custom property inclusion createdyes
400Invalid inputno
403Forbiddenyes
422Property inclusion already existsno

Delete an OIDC custom property inclusion for an organization

DELETE /orgs/{org}/actions/oidc/customization/properties/repo/{custom_property_name}

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

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
custom_property_namepathyesThe name of the custom property to remove from OIDC token inclusion

Responses

StatusDescriptionHas JSON body
204OIDC custom property inclusion deletedno
400Invalid inputno
403Forbiddenyes
404Property inclusion not foundno

Get the customization template for an OIDC subject claim for an organization

GET /orgs/{org}/actions/oidc/customization/sub

Gets the customization template for an OpenID Connect (OIDC) subject claim.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
200A JSON serialized template for OIDC subject claim customizationyes

Set the customization template for an OIDC subject claim for an organization

PUT /orgs/{org}/actions/oidc/customization/sub

Creates or updates the customization template for an OpenID Connect (OIDC) subject claim.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
201Empty responseyes
404Resource not foundyes
403Forbiddenyes