Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.54 KB

setCustomOidcSubClaimForRepo.md

File metadata and controls

57 lines (42 loc) · 1.54 KB
name example route scope type
Set the customization template for an OIDC subject claim for a repository
octokit.rest.actions.setCustomOidcSubClaimForRepo({ owner, repo, use_default })
PUT /repos/{owner}/{repo}/actions/oidc/customization/sub
actions
API method

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.

octokit.rest.actions.setCustomOidcSubClaimForRepo({
  owner,
  repo,
  use_default,
});

Parameters

name required description
owneryes

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

repoyes

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

use_defaultyes

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

include_claim_keysno

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

See also: GitHub Developer Guide documentation.