provider actions PUT /repos/{owner}/{repo}/actions/oidc/customization/sub
@utdk/github /repos/{owner}/{repo}/actions/oidc/customization/sub
Set the customization template for an OIDC subject claim for a repository
Sets the customization template and `opt-in` or `opt-out` flag for an OpenID Connect (OIDC) subject claim for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
owner path required
The account owner of the repository. The name is not case sensitive.
string
repo path required
The name of the repository without the `.git` extension. The name is not case sensitive.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
actions.setCustomOidcSubClaimForRepo
PUT/repos/{owner}/{repo}/actions/oidc/customization/sub
Sets the customization template and `opt-in` or `opt-out` flag for an OpenID Connect (OIDC) subject claim for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

Parameters

required

The account owner of the repository. The name is not case sensitive.

required

The name of the repository without the `.git` extension. The name is not case sensitive.

Input

required

Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored.

Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.

Whether to opt in to the immutable OIDC subject claim format for this repository. When `true`, OIDC tokens will use a stable, repository-ID-based `sub` claim.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.actions.setCustomOidcSubClaimForRepo()