---
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.

OAuth tokens and personal access tokens (classic) need the `repo` scope 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.
  - `use_immutable_subject` boolean — Whether the repository has opted in to the immutable OIDC subject claim format. When `true`, OIDC tokens will use a stable, repository-ID-based `sub` claim. If not set at the repository level, falls back to the organization-level setting.
  - `sub_claim_prefix` string — The current `sub` claim prefix for this repository.

## Other responses

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

---

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