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 |
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,
});
name | required | description |
---|---|---|
owner | yes |
The account owner of the repository. The name is not case sensitive. |
repo | yes |
The name of the repository without the |
use_default | yes |
Whether to use the default template or not. If |
include_claim_keys | no |
Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. |
See also: GitHub Developer Guide documentation.