Skip to content

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.

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

API method documentation

org
required
string

The organization name. The name is not case sensitive.

A JSON array of OIDC custom property inclusions

Media type application/json
Array<object>
Actions OIDC Custom Property Inclusion

An OIDC custom property inclusion for repository properties

object
custom_property_name
required

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

string
inclusion_source
required

Whether the inclusion was defined at the organization or enterprise level

string
Allowed values: organization enterprise
Examples
Example default
[
{
"property_name": "environment"
},
{
"property_name": "team"
}
]

Forbidden

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}

Resource not found

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}