---
title: "Get the customization template for an OIDC subject claim for a repository"
method: GET
path: "/repos/{owner}/{repo}/actions/oidc/customization/sub"
tags: ["actions"]
---

# Get the customization template for an OIDC subject claim for a repository

`GET /repos/{owner}/{repo}/actions/oidc/customization/sub`

Gets the customization template for an OpenID Connect (OIDC) subject claim.
You must authenticate using an access token with the `repo` scope to use this
endpoint. GitHub Apps must have the `organization_administration:read` permission to use this endpoint.

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `200`

Status response

- OidcCustomSubRepo — Actions OIDC subject customization for a repository
  - `use_default` boolean, required — Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored.
  - `include_claim_keys` string[] — Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. This property will only appear in the response body if it was already set using the organization-level endpoint, "Set the customization template for an OIDC subject claim for an organization".

## Other responses

- `400` — Bad Request
- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-6.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-6/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-6/versions/15db3fa0759b/schema)
