Skip to content

GitHub: Actions schemas

94 GitHub schemas with complete fields and constraints.

← Actions operations · All schemas

Create a remove token for a repository — response body

FieldTypePresenceDescription and constraints
$objectRootAuthentication Token
expires_atstringRequired within parentThe time this token expires
Format: date-time
permissionsobjectOptional
repositoriesarrayOptionalThe repositories this token has access to
repositories[]ModelEach itemExpand List repositories for the authenticated user — response body — item
repository_selectionstringOptionalDescribe whether all repositories have been selected or there's a selection involved
Known values: all, selected
single_fileJSONOptional
single_file (anyOf 1)stringAlternative
single_file (anyOf 2)nullAlternative
tokenstringRequired within parentThe token used for authentication

Referenced models: List repositories for the authenticated user — response body — item

Create a repository Actions policy — request body — body conditions

FieldTypePresenceDescription and constraints
$objectRootConditions for a repository Actions policy. The object may be empty to preserve or use the
default workflow targeting, or contain only `workflow_path`.
$ (oneOf 1)objectAlternativeMaximum fields: 0
$ (oneOf 2)JSONAlternativeMaximum fields: 1
$ (oneOf 2) (allOf 1)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition

Referenced models: Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition

Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition

FieldTypePresenceDescription and constraints
$objectRootParameters for an Actions policy workflow path condition. Omitting `workflow_path` when creating
a policy targets all workflows without storing an explicit condition. Omitting it when updating a
policy preserves the existing workflow targeting. For new or changed workflow conditions, the API
requires at least one included or excluded pattern. This is validated server-side rather than by
this schema, which can also describe existing stored conditions.
workflow_pathobjectOptional
workflow_path.excludearrayRequired within parentArray of workflow file paths or glob patterns to exclude. The condition will not pass
if any of these patterns match. `~ALL` is not allowed in this array.
workflow_path.exclude[]stringEach item
workflow_path.includearrayRequired within parentArray of workflow file paths or glob patterns to include. An empty array includes all
workflows not matched by an excluded pattern. Use `~ALL` by itself to include all workflows.
`~ALL` cannot be combined with other included patterns.
workflow_path.include[]stringEach item

Create a repository Actions policy — request body — body rules item

FieldTypePresenceDescription and constraints
$objectRootAn actions rule.
$ (oneOf 1)ModelAlternativeExpand Create a repository Actions policy — request body — body rules item restrict actions actors
$ (oneOf 2)ModelAlternativeExpand Create a repository Actions policy — request body — body rules item restrict action events

Referenced models: Create a repository Actions policy — request body — body rules item restrict action events, Create a repository Actions policy — request body — body rules item restrict actions actors

Create a repository Actions policy — request body — body rules item restrict action events

FieldTypePresenceDescription and constraints
$objectRootChoose specific GitHub events that will trigger Actions workflows.
parametersobjectOptional
parameters.allowed_eventsarrayRequired within parentSelect the events that can trigger Actions workflows.
parameters.allowed_events[]stringEach itemOne of: branch_protection_rule, check_run, check_suite, create, delete, deployment, deployment_status, discussion, discussion_comment, fork, gollum, image_version, issue_comment, issues, label, merge_group, milestone, page_build, project, project_card, project_column, public, pull_request, pull_request_review, pull_request_review_comment, pull_request_target, push, registry_package, release, repository_dispatch, schedule, status, watch, workflow_call, workflow_dispatch, workflow_run
typestringRequired within parentOne of: restrict_action_events

Create a repository Actions policy — request body — body rules item restrict actions actors

FieldTypePresenceDescription and constraints
$objectRootChoose specific actors that are authorized to trigger Actions workflows.
parametersobjectOptional
parameters.allowed_actorsarrayRequired within parentSelect the actors who can run Actions workflows.
parameters.allowed_actors[]ModelEach itemExpand Create a repository Actions policy — request body — body rules item restrict actions actors parameters allowed actors item
typestringRequired within parentOne of: restrict_actions_actors

Referenced models: Create a repository Actions policy — request body — body rules item restrict actions actors parameters allowed actors item

Create a repository Actions policy — request body — body rules item restrict actions actors parameters allowed actors item

FieldTypePresenceDescription and constraints
$objectRootAn actor authorized to trigger Actions workflows
idintegerRequired within parentID of the actor authorized to trigger Actions workflows.
typestringRequired within parentThe type of the actor
One of: User, Bot, Team, BusinessTeam, EnterpriseTeam, IntegrationInstallation, App, RepositoryRole

Create a workflow dispatch event — response body

FieldTypePresenceDescription and constraints
$objectRootResponse containing the workflow run ID and URLs.
html_urlstringRequired within parentFormat: uri
run_urlstringRequired within parentThe URL to the workflow run.
Format: uri
workflow_run_idModelRequired within parentExpand Create a workflow dispatch event — response body — workflow run id

Referenced models: Create a workflow dispatch event — response body — workflow run id

Create a workflow dispatch event — response body — workflow run id

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)integerAlternativeThe ID of the workflow run.
Format: int64
$ (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Create an organization Actions policy — request body — body conditions

FieldTypePresenceDescription and constraints
$objectRootConditions for an organization Actions policy. The conditions object should contain one of
`repository_name`, `repository_id`, or `repository_property`, and may also contain `workflow_path`.
$ (oneOf 1)JSONAlternative
$ (oneOf 1) (allOf 1)ModelAll variants applyExpand Create an organization Actions policy — request body — body conditions repository name, workflow path Repository ruleset conditions for repository names
$ (oneOf 1) (allOf 2)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition
$ (oneOf 2)JSONAlternative
$ (oneOf 2) (allOf 1)ModelAll variants applyExpand Create an organization Actions policy — request body — body conditions repository id, workflow path Repository ruleset conditions for repository I Ds
$ (oneOf 2) (allOf 2)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition
$ (oneOf 3)JSONAlternative
$ (oneOf 3) (allOf 1)ModelAll variants applyExpand Create an organization Actions policy — request body — body conditions repository property, workflow path Repository ruleset conditions for repository properties
$ (oneOf 3) (allOf 2)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition

Referenced models: Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition, Create an organization Actions policy — request body — body conditions repository name, workflow path Repository ruleset conditions for repository names, Create an organization Actions policy — request body — body conditions repository id, workflow path Repository ruleset conditions for repository I Ds, Create an organization Actions policy — request body — body conditions repository property, workflow path Repository ruleset conditions for repository properties

Create an organization Actions policy — request body — body conditions repository id, workflow path Repository ruleset conditions for repository I Ds

FieldTypePresenceDescription and constraints
$objectRootParameters for a repository ID condition
repository_idobjectRequired within parent
repository_id.repository_idsarrayOptionalThe repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.
repository_id.repository_ids[]integerEach item

Create an organization Actions policy — request body — body conditions repository name, workflow path Repository ruleset conditions for repository names

FieldTypePresenceDescription and constraints
$objectRootParameters for a repository name condition
repository_nameobjectRequired within parent
repository_name.excludearrayOptionalArray of repository names or patterns to exclude. The condition will not pass if any of these patterns match.
repository_name.exclude[]stringEach item
repository_name.includearrayOptionalArray of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.
repository_name.include[]stringEach item
repository_name.protectedbooleanOptionalWhether renaming of target repositories is prevented.

Create an organization Actions policy — request body — body conditions repository property, workflow path Repository ruleset conditions for repository properties

FieldTypePresenceDescription and constraints
$objectRootParameters for a repository property condition
repository_propertyobjectRequired within parent
repository_property.excludearrayOptionalThe repository properties and values to exclude. The condition will not pass if any of these properties match.
repository_property.exclude[]ModelEach itemExpand Create an organization Actions policy — request body — body conditions repository property, workflow path Repository ruleset conditions for repository properties repository property exclude item
repository_property.includearrayOptionalThe repository properties and values to include. All of these properties must match for the condition to pass.
repository_property.include[]ModelEach itemExpand Create an organization Actions policy — request body — body conditions repository property, workflow path Repository ruleset conditions for repository properties repository property exclude item

Referenced models: Create an organization Actions policy — request body — body conditions repository property, workflow path Repository ruleset conditions for repository properties repository property exclude item

Create an organization Actions policy — request body — body conditions repository property, workflow path Repository ruleset conditions for repository properties repository property exclude item

FieldTypePresenceDescription and constraints
$objectRootParameters for a targeting a repository property
namestringRequired within parentThe name of the repository property to target
property_valuesarrayRequired within parentThe values to match for the repository property
property_values[]stringEach item
sourcestringOptionalThe source of the repository property. Defaults to 'custom' if not specified.
One of: custom, system

Create configuration for a just-in-time runner for a repository — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
labelsarrayRequired within parentThe names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.
Maximum items: 100
Minimum items: 1
labels[]stringEach item
namestringRequired within parentThe name of the new runner.
runner_group_idintegerRequired within parentThe ID of the runner group to register the runner to.
work_folderstringOptionalThe working directory to be used for job execution, relative to the runner install directory.
Default: _work

Get Git Hub Actions cache retention limit for a repository — response body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache retention policy for a repository.
max_cache_retention_daysJSONOptional
max_cache_retention_days (anyOf 1)integerAlternativeThe maximum number of days to keep caches in this repository.
max_cache_retention_days (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get Git Hub Actions cache retention limit for an enterprise — response body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache retention policy for an enterprise.
max_cache_retention_daysJSONOptional
max_cache_retention_days (anyOf 1)integerAlternativeFor repositories & organizations in an enterprise, the maximum duration, in days, for which caches in a repository may be retained.
max_cache_retention_days (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get Git Hub Actions cache retention limit for an organization — response body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache retention policy for an organization.
max_cache_retention_daysJSONOptional
max_cache_retention_days (anyOf 1)integerAlternativeFor repositories in this organization, the maximum duration, in days, for which caches in a repository may be retained.
max_cache_retention_days (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get Git Hub Actions cache storage limit for a repository — response body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache storage policy for a repository.
max_cache_size_gbJSONOptional
max_cache_size_gb (anyOf 1)integerAlternativeThe maximum total cache size for this repository, in gigabytes.
max_cache_size_gb (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get Git Hub Actions cache storage limit for an enterprise — response body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache storage policy for an enterprise.
max_cache_size_gbJSONOptional
max_cache_size_gb (anyOf 1)integerAlternativeFor repositories & organizations in an enterprise, the maximum size limit for the sum of all caches in a repository, in gigabytes.
max_cache_size_gb (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get Git Hub Actions cache storage limit for an organization — response body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache storage policy for an organization.
max_cache_size_gbJSONOptional
max_cache_size_gb (anyOf 1)integerAlternativeFor repositories in the organization, the maximum size limit for the sum of all caches in a repository, in gigabytes.
max_cache_size_gb (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get Git Hub Actions cache usage for a repository — response body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions Cache Usage by repository.
active_caches_countJSONRequired within parent
active_caches_count (anyOf 1)integerAlternativeThe number of active caches in the repository.
active_caches_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
active_caches_size_in_bytesJSONRequired within parent
active_caches_size_in_bytes (anyOf 1)integerAlternativeThe sum of the size in bytes of all the active cache items in the repository.
active_caches_size_in_bytes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
full_namestringRequired within parentThe repository owner and name for the cache usage being shown.

Get Git Hub Actions cache usage for an organization — response body

FieldTypePresenceDescription and constraints
$objectRoot
total_active_caches_countJSONRequired within parent
total_active_caches_count (anyOf 1)integerAlternativeThe count of active caches across all repositories of an enterprise or an organization.
total_active_caches_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
total_active_caches_size_in_bytesJSONRequired within parent
total_active_caches_size_in_bytes (anyOf 1)integerAlternativeThe total size in bytes of all active cache items across all repositories of an enterprise or an organization.
total_active_caches_size_in_bytes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get Git Hub Actions permissions for a repository — response body

FieldTypePresenceDescription and constraints
$objectRoot
allowed_actionsstringOptionalThe permissions policy that controls the actions and reusable workflows that are allowed to run.
Known values: all, local_only, selected
enabledbooleanRequired within parentWhether GitHub Actions is enabled on the repository.
selected_actions_urlstringOptionalThe API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.
sha_pinning_requiredbooleanOptionalWhether actions must be pinned to a full-length commit SHA.

Get Git Hub Actions permissions for an organization — response body

FieldTypePresenceDescription and constraints
$objectRoot
allowed_actionsstringOptionalThe permissions policy that controls the actions and reusable workflows that are allowed to run.
Known values: all, local_only, selected
enabled_repositoriesstringRequired within parentThe policy that controls the repositories in the organization that are allowed to run GitHub Actions.
Known values: all, none, selected
selected_actions_urlstringOptionalThe API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.
selected_repositories_urlstringOptionalThe API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.
sha_pinning_requiredbooleanOptionalWhether actions must be pinned to a full-length commit SHA.

Get a Git Hub-hosted runner for an organization — response body

FieldTypePresenceDescription and constraints
$objectRootA Github-hosted hosted runner.
idJSONRequired within parent
id (anyOf 1)integerAlternativeThe unique identifier of the hosted runner.
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
image_detailsModelRequired within parentExpand Get a Git Hub-hosted runner for an organization — response body — image details
image_genbooleanOptionalWhether custom image generation is enabled for the hosted runners.
last_active_onJSONOptional
last_active_on (anyOf 1)stringAlternativeThe time at which the runner was last used, in ISO 8601 format.
Format: date-time
last_active_on (anyOf 2)nullAlternative
machine_size_detailsModelRequired within parentExpand Get a Git Hub-hosted runner for an organization — response body — machine size details
maximum_runnersJSONOptional
maximum_runners (anyOf 1)integerAlternativeThe maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost.
Default: 10
maximum_runners (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringRequired within parentThe name of the hosted runner.
platformstringRequired within parentThe operating system of the image.
public_ip_enabledbooleanRequired within parentWhether public IP is enabled for the hosted runners.
public_ipsarrayOptionalThe public IP ranges when public IP is enabled for the hosted runners.
public_ips[]ModelEach itemExpand Get a Git Hub-hosted runner for an organization — response body — public ips item
runner_group_idJSONOptional
runner_group_id (anyOf 1)integerAlternativeThe unique identifier of the group that the hosted runner belongs to.
runner_group_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
statusstringRequired within parentThe status of the runner.
Known values: Ready, Provisioning, Shutdown, Deleting, Stuck

Referenced models: Get a Git Hub-hosted runner for an organization — response body — machine size details, Get a Git Hub-hosted runner for an organization — response body — image details, Get a Git Hub-hosted runner for an organization — response body — public ips item

Get a Git Hub-hosted runner for an organization — response body — image details

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeProvides details of a hosted runner image
$ (anyOf 1).display_namestringRequired within parentDisplay name for this image.
$ (anyOf 1).idstringRequired within parentThe ID of the image. Use this ID for the `image` parameter when creating a new larger runner.
$ (anyOf 1).size_gbJSONRequired within parent
$ (anyOf 1).size_gb (anyOf 1)integerAlternativeImage size in GB.
$ (anyOf 1).size_gb (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).sourcestringRequired within parentThe image provider.
Known values: github, partner, custom
$ (anyOf 1).versionstringOptionalThe image version of the hosted runner pool.
$ (anyOf 2)nullAlternative

Get a Git Hub-hosted runner for an organization — response body — machine size details

FieldTypePresenceDescription and constraints
$objectRootProvides details of a particular machine spec.
cpu_coresJSONRequired within parent
cpu_cores (anyOf 1)integerAlternativeThe number of cores.
cpu_cores (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
idstringRequired within parentThe ID used for the `size` parameter when creating a new runner.
memory_gbJSONRequired within parent
memory_gb (anyOf 1)integerAlternativeThe available RAM for the machine spec.
memory_gb (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
storage_gbJSONRequired within parent
storage_gb (anyOf 1)integerAlternativeThe available SSD storage for the machine spec.
storage_gb (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get a Git Hub-hosted runner for an organization — response body — public ips item

FieldTypePresenceDescription and constraints
$objectRootProvides details of Public IP for a GitHub-hosted larger runners
enabledbooleanOptionalWhether public IP is enabled.
lengthJSONOptional
length (anyOf 1)integerAlternativeThe length of the IP prefix.
length (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
prefixstringOptionalThe prefix for the public IP.

Get a concurrency group for a repository — response body

FieldTypePresenceDescription and constraints
$objectRootA concurrency group with the workflow runs and jobs that are either currently holding
or waiting for the concurrency group lease.
group_membersarrayRequired within parent
group_members[]objectEach item
group_members[].job_html_urlJSONOptional
group_members[].job_html_url (anyOf 1)stringAlternativeWeb URL for the job.
Format: uri
group_members[].job_html_url (anyOf 2)nullAlternative
group_members[].job_idJSONOptional
group_members[].job_id (anyOf 1)integerAlternativeThe ID of the job, when the item represents a job-level or reusable-workflow-level lease.
group_members[].job_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
group_members[].job_namestringOptionalThe display name of the job, when the item represents a job-level or reusable-workflow-level lease.
group_members[].job_urlJSONOptional
group_members[].job_url (anyOf 1)stringAlternativeAPI URL for the job.
Format: uri
group_members[].job_url (anyOf 2)nullAlternative
group_members[].run_html_urlJSONRequired within parent
group_members[].run_html_url (anyOf 1)stringAlternativeWeb URL for the workflow run.
Format: uri
group_members[].run_html_url (anyOf 2)nullAlternative
group_members[].run_idJSONRequired within parent
group_members[].run_id (anyOf 1)integerAlternativeThe ID of the workflow run.
group_members[].run_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
group_members[].run_namestringRequired within parentThe name of the workflow run.
group_members[].run_urlJSONRequired within parent
group_members[].run_url (anyOf 1)stringAlternativeAPI URL for the workflow run.
Format: uri
group_members[].run_url (anyOf 2)nullAlternative
group_members[].statusstringRequired within parentKnown values: in_progress, pending
group_namestringRequired within parentThe name of the concurrency group.
group_urlstringRequired within parentAPI URL for this concurrency group.
Format: uri
total_countJSONRequired within parent
total_count (anyOf 1)integerAlternative
total_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get a custom image definition for Git Hub Actions Hosted Runners — response body

FieldTypePresenceDescription and constraints
$objectRootProvides details of a custom runner image
idJSONRequired within parent
id (anyOf 1)integerAlternativeThe ID of the image. Use this ID for the `image` parameter when creating a new larger runner.
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
latest_versionstringRequired within parentThe latest image version associated with the image.
namestringRequired within parentDisplay name for this image.
platformstringRequired within parentThe operating system of the image.
sourcestringRequired within parentThe image provider.
statestringRequired within parentThe number of image versions associated with the image.
total_versions_sizeJSONRequired within parent
total_versions_size (anyOf 1)integerAlternativeTotal size of all the image versions in GB.
total_versions_size (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
versions_countJSONRequired within parent
versions_count (anyOf 1)integerAlternativeThe number of image versions associated with the image.
versions_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get a job for a workflow run — response body

FieldTypePresenceDescription and constraints
$objectRootInformation of a job execution in a workflow run
check_run_urlstringRequired within parent
completed_atJSONRequired within parent
completed_at (anyOf 1)stringAlternativeThe time that the job finished, in ISO 8601 format.
Format: date-time
completed_at (anyOf 2)nullAlternative
conclusionJSONRequired within parent
conclusion (anyOf 1)stringAlternativeThe outcome of the job.
Known values: success, failure, neutral, cancelled, skipped, timed_out, action_required
conclusion (anyOf 2)nullAlternative
created_atstringRequired within parentThe time that the job created, in ISO 8601 format.
Format: date-time
head_branchJSONRequired within parent
head_branch (anyOf 1)stringAlternativeThe name of the current branch.
head_branch (anyOf 2)nullAlternative
head_shastringRequired within parentThe SHA of the commit that is being run.
html_urlJSONRequired within parent
html_url (anyOf 1)stringAlternative
html_url (anyOf 2)nullAlternative
idJSONRequired within parent
id (anyOf 1)integerAlternativeThe id of the job.
Format: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
labelsarrayRequired within parentLabels for the workflow job. Specified by the "runs_on" attribute in the action's workflow file.
labels[]stringEach item
namestringRequired within parentThe name of the job.
node_idstringRequired within parent
run_attemptJSONOptional
run_attempt (anyOf 1)integerAlternativeAttempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.
run_attempt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
run_idJSONRequired within parent
run_id (anyOf 1)integerAlternativeThe id of the associated workflow run.
Format: int64
run_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
run_urlstringRequired within parent
runner_group_idJSONRequired within parent
runner_group_id (anyOf 1)JSONAlternative
runner_group_id (anyOf 1) (anyOf 1)integerAlternativeThe ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)
runner_group_id (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
runner_group_id (anyOf 2)nullAlternative
runner_group_nameJSONRequired within parent
runner_group_name (anyOf 1)stringAlternativeThe name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)
runner_group_name (anyOf 2)nullAlternative
runner_idJSONRequired within parent
runner_id (anyOf 1)JSONAlternative
runner_id (anyOf 1) (anyOf 1)integerAlternativeThe ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)
runner_id (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
runner_id (anyOf 2)nullAlternative
runner_nameJSONRequired within parent
runner_name (anyOf 1)stringAlternativeThe name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)
runner_name (anyOf 2)nullAlternative
started_atstringRequired within parentThe time that the job started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe phase of the lifecycle that the job is currently in.
Known values: queued, in_progress, completed, waiting, requested, pending
stepsarrayOptionalSteps in this job.
steps[]objectEach item
steps[].completed_atJSONOptional
steps[].completed_at (anyOf 1)stringAlternativeThe time that the job finished, in ISO 8601 format.
Format: date-time
steps[].completed_at (anyOf 2)nullAlternative
steps[].conclusionJSONRequired within parent
steps[].conclusion (anyOf 1)stringAlternativeThe outcome of the job.
steps[].conclusion (anyOf 2)nullAlternative
steps[].namestringRequired within parentThe name of the job.
steps[].numberJSONRequired within parent
steps[].number (anyOf 1)integerAlternative
steps[].number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
steps[].started_atJSONOptional
steps[].started_at (anyOf 1)stringAlternativeThe time that the step started, in ISO 8601 format.
Format: date-time
steps[].started_at (anyOf 2)nullAlternative
steps[].statusstringRequired within parentThe phase of the lifecycle that the job is currently in.
Known values: queued, in_progress, completed
urlstringRequired within parent
workflow_nameJSONRequired within parent
workflow_name (anyOf 1)stringAlternativeThe name of the workflow.
workflow_name (anyOf 2)nullAlternative

Get a repository Actions policy — response body

FieldTypePresenceDescription and constraints
$objectRootAn Actions policy defines rules for workflow execution protection.
_linksobjectOptional
_links.htmlobjectOptional
_links.html.hrefstringOptionalThe html URL of the policy
_links.selfobjectOptional
_links.self.hrefstringOptionalThe URL of the policy
conditionsJSONOptional
conditions (anyOf 1)JSONAlternativeWhen workflow path targeting is available, detailed responses represent an omitted stored
workflow condition as `workflow_path` with `include` set to `["~ALL"]` and `exclude` set to `[]`.
When workflow path targeting is unavailable, an omitted stored condition remains omitted.
conditions (anyOf 1) (anyOf 1)ModelAlternativeExpand Get a repository Actions policy — response body — conditions value Repository Actions policy conditions
conditions (anyOf 1) (anyOf 2)ModelAlternativeExpand Get a repository Actions policy — response body — conditions value Organization Actions policy conditions
conditions (anyOf 1) (anyOf 3)ModelAlternativeExpand Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions
conditions (anyOf 2)nullAlternative
created_atstringOptionalFormat: date-time
enforcementstringRequired within parentThe enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).
Known values: disabled, active, evaluate
idJSONRequired within parent
id (anyOf 1)integerAlternativeThe ID of the policy
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringRequired within parentThe name of the policy
node_idstringOptional
rulesarrayOptionalAn array of rules within the policy
rules[]ModelEach itemExpand Get a repository Actions policy — response body — rules item
sourcestringRequired within parentThe name of the source
source_typestringRequired within parentThe type of the source of the policy
Known values: Repository, Organization, Enterprise
targetstringRequired within parentThe target of the policy
Known values: actions
updated_atstringOptionalFormat: date-time

Referenced models: Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions, Get a repository Actions policy — response body — conditions value Organization Actions policy conditions, Get a repository Actions policy — response body — conditions value Repository Actions policy conditions, Get a repository Actions policy — response body — rules item

Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions

FieldTypePresenceDescription and constraints
$objectRootConditions for an enterprise Actions policy. The conditions object supports one organization
target (`organization_name`, `organization_id`, or `organization_property`) combined with one
repository target (`repository_name` or `repository_property`), and may also contain `workflow_path`.
$ (anyOf 1)objectAlternativeConditions to target organizations by name and repositories by name
$ (anyOf 1) (allOf 1)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization name, repository name, workflow path Repository ruleset conditions for organization names
$ (anyOf 1) (allOf 2)ModelAll variants applyExpand Create an organization Actions policy — request body — body conditions repository name, workflow path Repository ruleset conditions for repository names
$ (anyOf 1) (allOf 3)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition
$ (anyOf 2)objectAlternativeConditions to target organizations by name and repositories by property
$ (anyOf 2) (allOf 1)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization name, repository name, workflow path Repository ruleset conditions for organization names
$ (anyOf 2) (allOf 2)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties
$ (anyOf 2) (allOf 3)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition
$ (anyOf 3)objectAlternativeConditions to target organizations by id and repositories by name
$ (anyOf 3) (allOf 1)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization id, repository name, workflow path Repository ruleset conditions for organization I Ds
$ (anyOf 3) (allOf 2)ModelAll variants applyExpand Create an organization Actions policy — request body — body conditions repository name, workflow path Repository ruleset conditions for repository names
$ (anyOf 3) (allOf 3)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition
$ (anyOf 4)objectAlternativeConditions to target organizations by id and repositories by property
$ (anyOf 4) (allOf 1)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization id, repository name, workflow path Repository ruleset conditions for organization I Ds
$ (anyOf 4) (allOf 2)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties
$ (anyOf 4) (allOf 3)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition
$ (anyOf 5)objectAlternativeConditions to target organizations by property and repositories by name
$ (anyOf 5) (allOf 1)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization property, repository name, workflow path Repository ruleset conditions for organization properties
$ (anyOf 5) (allOf 2)ModelAll variants applyExpand Create an organization Actions policy — request body — body conditions repository name, workflow path Repository ruleset conditions for repository names
$ (anyOf 5) (allOf 3)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition
$ (anyOf 6)objectAlternativeConditions to target organizations by property and repositories by property
$ (anyOf 6) (allOf 1)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization property, repository name, workflow path Repository ruleset conditions for organization properties
$ (anyOf 6) (allOf 2)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties
$ (anyOf 6) (allOf 3)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition

Referenced models: Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition, Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization id, repository name, workflow path Repository ruleset conditions for organization I Ds, Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization name, repository name, workflow path Repository ruleset conditions for organization names, Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization property, repository name, workflow path Repository ruleset conditions for organization properties, Create an organization Actions policy — request body — body conditions repository name, workflow path Repository ruleset conditions for repository names, Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties

Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization id, repository name, workflow path Repository ruleset conditions for organization I Ds

FieldTypePresenceDescription and constraints
$objectRootParameters for an organization ID condition
organization_idobjectRequired within parent
organization_id.organization_idsarrayOptionalThe organization IDs that the ruleset applies to. One of these IDs must match for the condition to pass.
organization_id.organization_ids[]JSONEach item
organization_id.organization_ids[] (anyOf 1)integerAlternative
organization_id.organization_ids[] (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization name, repository name, workflow path Repository ruleset conditions for organization names

FieldTypePresenceDescription and constraints
$objectRootParameters for an organization name condition
organization_nameobjectRequired within parent
organization_name.excludearrayOptionalArray of organization names or patterns to exclude. The condition will not pass if any of these patterns match.
organization_name.exclude[]stringEach item
organization_name.includearrayOptionalArray of organization names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all organizations and ~EMUS to target all enterprise managed user accounts.
organization_name.include[]stringEach item

Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization property, repository name, workflow path Repository ruleset conditions for organization properties

FieldTypePresenceDescription and constraints
$objectRootParameters for a organization property condition
organization_propertyobjectRequired within parent
organization_property.excludearrayOptionalThe organization properties and values to exclude. The condition will not pass if any of these properties match.
organization_property.exclude[]ModelEach itemExpand Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization property, repository name, workflow path Repository ruleset conditions for organization properties organization property exclude item
organization_property.includearrayOptionalThe organization properties and values to include. All of these properties must match for the condition to pass.
organization_property.include[]ModelEach itemExpand Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization property, repository name, workflow path Repository ruleset conditions for organization properties organization property exclude item

Referenced models: Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization property, repository name, workflow path Repository ruleset conditions for organization properties organization property exclude item

Get a repository Actions policy — response body — conditions value Enterprise Actions policy conditions organization property, repository name, workflow path Repository ruleset conditions for organization properties organization property exclude item

FieldTypePresenceDescription and constraints
$objectRootParameters for a targeting a organization property
namestringRequired within parentThe name of the organization property to target
property_valuesarrayRequired within parentThe values to match for the organization property
property_values[]stringEach item

Get a repository Actions policy — response body — conditions value Organization Actions policy conditions

FieldTypePresenceDescription and constraints
$objectRootConditions for an organization Actions policy. The conditions object should contain one of
`repository_name`, `repository_id`, or `repository_property`, and may also contain `workflow_path`.
$ (anyOf 1)JSONAlternative
$ (anyOf 1) (allOf 1)ModelAll variants applyExpand Create an organization Actions policy — request body — body conditions repository name, workflow path Repository ruleset conditions for repository names
$ (anyOf 1) (allOf 2)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition
$ (anyOf 2)JSONAlternative
$ (anyOf 2) (allOf 1)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository id, workflow path Repository ruleset conditions for repository I Ds
$ (anyOf 2) (allOf 2)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition
$ (anyOf 3)JSONAlternative
$ (anyOf 3) (allOf 1)ModelAll variants applyExpand Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties
$ (anyOf 3) (allOf 2)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition

Referenced models: Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition, Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository id, workflow path Repository ruleset conditions for repository I Ds, Create an organization Actions policy — request body — body conditions repository name, workflow path Repository ruleset conditions for repository names, Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties

Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository id, workflow path Repository ruleset conditions for repository I Ds

FieldTypePresenceDescription and constraints
$objectRootParameters for a repository ID condition
repository_idobjectRequired within parent
repository_id.repository_idsarrayOptionalThe repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.
repository_id.repository_ids[]JSONEach item
repository_id.repository_ids[] (anyOf 1)integerAlternative
repository_id.repository_ids[] (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties

FieldTypePresenceDescription and constraints
$objectRootParameters for a repository property condition
repository_propertyobjectRequired within parent
repository_property.excludearrayOptionalThe repository properties and values to exclude. The condition will not pass if any of these properties match.
repository_property.exclude[]ModelEach itemExpand Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties repository property exclude item
repository_property.includearrayOptionalThe repository properties and values to include. All of these properties must match for the condition to pass.
repository_property.include[]ModelEach itemExpand Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties repository property exclude item

Referenced models: Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties repository property exclude item

Get a repository Actions policy — response body — conditions value Organization Actions policy conditions repository property, workflow path Repository ruleset conditions for repository properties repository property exclude item

FieldTypePresenceDescription and constraints
$objectRootParameters for a targeting a repository property
namestringRequired within parentThe name of the repository property to target
property_valuesarrayRequired within parentThe values to match for the repository property
property_values[]stringEach item
sourcestringOptionalThe source of the repository property. Defaults to 'custom' if not specified.
Known values: custom, system

Get a repository Actions policy — response body — conditions value Repository Actions policy conditions

FieldTypePresenceDescription and constraints
$objectRootConditions for a repository Actions policy. The object may be empty to preserve or use the
default workflow targeting, or contain only `workflow_path`.
$ (anyOf 1)objectAlternativeMaximum fields: 0
$ (anyOf 2)JSONAlternativeMaximum fields: 1
$ (anyOf 2) (allOf 1)ModelAll variants applyExpand Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition

Referenced models: Create a repository Actions policy — request body — body conditions workflow path Actions policy workflow path condition

Get a repository Actions policy — response body — rules item

FieldTypePresenceDescription and constraints
$objectRootAn actions rule.
$ (anyOf 1)ModelAlternativeExpand Get a repository Actions policy — response body — rules item restrict actions actors
$ (anyOf 2)ModelAlternativeExpand Get a repository Actions policy — response body — rules item restrict action events

Referenced models: Get a repository Actions policy — response body — rules item restrict action events, Get a repository Actions policy — response body — rules item restrict actions actors

Get a repository Actions policy — response body — rules item restrict action events

FieldTypePresenceDescription and constraints
$objectRootChoose specific GitHub events that will trigger Actions workflows.
parametersobjectOptional
parameters.allowed_eventsarrayRequired within parentSelect the events that can trigger Actions workflows.
parameters.allowed_events[]stringEach itemKnown values: branch_protection_rule, check_run, check_suite, create, delete, deployment, deployment_status, discussion, discussion_comment, fork, gollum, image_version, issue_comment, issues, label, merge_group, milestone, page_build, project, project_card, project_column, public, pull_request, pull_request_review, pull_request_review_comment, pull_request_target, push, registry_package, release, repository_dispatch, schedule, status, watch, workflow_call, workflow_dispatch, workflow_run
typestringRequired within parentKnown values: restrict_action_events

Get a repository Actions policy — response body — rules item restrict actions actors

FieldTypePresenceDescription and constraints
$objectRootChoose specific actors that are authorized to trigger Actions workflows.
parametersobjectOptional
parameters.allowed_actorsarrayRequired within parentSelect the actors who can run Actions workflows.
parameters.allowed_actors[]ModelEach itemExpand Get a repository Actions policy — response body — rules item restrict actions actors parameters allowed actors item
typestringRequired within parentKnown values: restrict_actions_actors

Referenced models: Get a repository Actions policy — response body — rules item restrict actions actors parameters allowed actors item

Get a repository Actions policy — response body — rules item restrict actions actors parameters allowed actors item

FieldTypePresenceDescription and constraints
$objectRootAn actor authorized to trigger Actions workflows
idJSONRequired within parent
id (anyOf 1)integerAlternativeID of the actor authorized to trigger Actions workflows.
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
typestringRequired within parentThe type of the actor
Known values: User, Bot, Team, BusinessTeam, EnterpriseTeam, IntegrationInstallation, App, RepositoryRole

Get a self-hosted runner for a repository — response body

FieldTypePresenceDescription and constraints
$objectRootA self hosted runner
busybooleanRequired within parent
ephemeralbooleanOptional
idJSONRequired within parent
id (anyOf 1)integerAlternativeThe ID of the runner.
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
labelsarrayRequired within parent
labels[]ModelEach itemExpand Get a self-hosted runner for a repository — response body — labels item
namestringRequired within parentThe name of the runner.
osstringRequired within parentThe Operating System of the runner.
runner_group_idJSONOptional
runner_group_id (anyOf 1)integerAlternativeThe ID of the runner group.
runner_group_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
statusstringRequired within parentThe status of the runner.
versionJSONOptional
version (anyOf 1)stringAlternativeThe version of the GitHub Actions Runner software. This is only set if the runner has connected to the service at least once.
version (anyOf 2)nullAlternative

Referenced models: Get a self-hosted runner for a repository — response body — labels item

Get a self-hosted runner for a repository — response body — labels item

FieldTypePresenceDescription and constraints
$objectRootA label for a self hosted runner
idJSONOptional
id (anyOf 1)integerAlternativeUnique identifier of the label.
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringRequired within parentName of the label.
typestringOptionalThe type of label. Read-only labels are applied automatically when the runner is configured.
Known values: read-only, custom

Get a self-hosted runner group for an organization — response body

FieldTypePresenceDescription and constraints
$objectRoot
allows_public_repositoriesbooleanRequired within parent
defaultbooleanRequired within parent
hosted_runners_urlstringOptional
idJSONRequired within parent
id (anyOf 1)numberAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
inheritedbooleanRequired within parent
inherited_allows_public_repositoriesbooleanOptional
namestringRequired within parent
network_configuration_idstringOptionalThe identifier of a hosted compute network configuration.
restricted_to_workflowsbooleanOptionalIf `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.
Default: false
runners_urlstringRequired within parent
selected_repositories_urlstringOptionalLink to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`
selected_workflowsarrayOptionalList of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.
selected_workflows[]stringEach itemName of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required.
visibilitystringRequired within parent
workflow_restrictions_read_onlybooleanOptionalIf `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.
Default: false

Get a workflow run — response body

FieldTypePresenceDescription and constraints
$objectRootAn invocation of a workflow
actorModelOptionalExpand List users — response body — item
artifacts_urlstringRequired within parentThe URL to the artifacts for the workflow run.
cancel_urlstringRequired within parentThe URL to cancel the workflow run.
check_suite_idJSONOptional
check_suite_id (anyOf 1)integerAlternativeThe ID of the associated check suite.
Format: int64
check_suite_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
check_suite_node_idstringOptionalThe node ID of the associated check suite.
check_suite_urlstringRequired within parentThe URL to the associated check suite.
conclusionJSONRequired within parent
conclusion (anyOf 1)stringAlternative
conclusion (anyOf 2)nullAlternative
created_atstringRequired within parentFormat: date-time
display_titlestringRequired within parentThe event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.
eventstringRequired within parent
head_branchJSONRequired within parent
head_branch (anyOf 1)stringAlternative
head_branch (anyOf 2)nullAlternative
head_commitModelRequired within parentExpand Get a workflow run — response body — head commit
head_repositoryModelRequired within parentExpand Transfer a repository — response body
head_repository_idJSONOptional
head_repository_id (anyOf 1)integerAlternative
head_repository_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
head_shastringRequired within parentThe SHA of the head commit that points to the version of the workflow being run.
html_urlstringRequired within parent
idJSONRequired within parent
id (anyOf 1)integerAlternativeThe ID of the workflow run.
Format: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
jobs_urlstringRequired within parentThe URL to the jobs for the workflow run.
logs_urlstringRequired within parentThe URL to download the logs for the workflow run.
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the workflow run.
name (anyOf 2)nullAlternative
node_idstringRequired within parent
pathstringRequired within parentThe full path of the workflow
previous_attempt_urlJSONOptional
previous_attempt_url (anyOf 1)stringAlternativeThe URL to the previous attempted run of this workflow, if one exists.
previous_attempt_url (anyOf 2)nullAlternative
pull_requestsJSONRequired within parent
pull_requests (anyOf 1)arrayAlternativePull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run.
pull_requests (anyOf 1)[]ModelEach itemExpand Get a check run — response body — pull requests item
pull_requests (anyOf 2)nullAlternative
referenced_workflowsJSONOptional
referenced_workflows (anyOf 1)arrayAlternative
referenced_workflows (anyOf 1)[]ModelEach itemExpand Get a workflow run — response body — referenced workflows array item
referenced_workflows (anyOf 2)nullAlternative
repositoryModelRequired within parentExpand Transfer a repository — response body
rerun_urlstringRequired within parentThe URL to rerun the workflow run.
run_attemptJSONOptional
run_attempt (anyOf 1)integerAlternativeAttempt number of the run, 1 for first attempt and higher if the workflow was re-run.
run_attempt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
run_numberJSONRequired within parent
run_number (anyOf 1)integerAlternativeThe auto incrementing run number for the workflow run.
run_number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
run_started_atstringOptionalThe start time of the latest run. Resets on re-run.
Format: date-time
statusJSONRequired within parent
status (anyOf 1)stringAlternative
status (anyOf 2)nullAlternative
triggering_actorModelOptionalExpand List users — response body — item
updated_atstringRequired within parentFormat: date-time
urlstringRequired within parentThe URL to the workflow run.
workflow_idJSONRequired within parent
workflow_id (anyOf 1)integerAlternativeThe ID of the parent workflow.
workflow_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
workflow_urlstringRequired within parentThe URL to the workflow.

Referenced models: Transfer a repository — response body, Get a workflow run — response body — head commit, Get a check run — response body — pull requests item, Get a workflow run — response body — referenced workflows array item, List users — response body — item

Get a workflow run — response body — head commit

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Get a workflow run — response body — head commit A commit
$ (anyOf 2)nullAlternative

Referenced models: Get a workflow run — response body — head commit A commit

Get a workflow run — response body — head commit A commit

FieldTypePresenceDescription and constraints
$objectRootA commit.
authorJSONRequired within parent
author (anyOf 1)objectAlternativeInformation about the Git author
author (anyOf 1).emailstringRequired within parentGit email address of the commit's author
Format: email
author (anyOf 1).namestringRequired within parentName of the commit's author
author (anyOf 2)nullAlternative
committerJSONRequired within parent
committer (anyOf 1)objectAlternativeInformation about the Git committer
committer (anyOf 1).emailstringRequired within parentGit email address of the commit's committer
Format: email
committer (anyOf 1).namestringRequired within parentName of the commit's committer
committer (anyOf 2)nullAlternative
idstringRequired within parentSHA for the commit
messagestringRequired within parentMessage describing the purpose of the commit
timestampstringRequired within parentTimestamp of the commit
Format: date-time
tree_idstringRequired within parentSHA for the commit's tree

Get a workflow run — response body — referenced workflows array item

FieldTypePresenceDescription and constraints
$objectRootA workflow referenced/reused by the initial caller workflow
pathstringRequired within parent
refstringOptional
shastringRequired within parent

Get a workflow — response body

FieldTypePresenceDescription and constraints
$objectRootA GitHub Actions workflow
badge_urlstringRequired within parent
created_atstringRequired within parentFormat: date-time
deleted_atstringOptionalFormat: date-time
html_urlstringRequired within parent
idJSONRequired within parent
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringRequired within parent
node_idstringRequired within parent
pathstringRequired within parent
statestringRequired within parentKnown values: active, deleted, disabled_fork, disabled_inactivity, disabled_manually
updated_atstringRequired within parentFormat: date-time
urlstringRequired within parent

Get allowed actions and reusable workflows for a repository — response body

FieldTypePresenceDescription and constraints
$objectRoot
github_owned_allowedbooleanOptionalWhether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.
patterns_allowedarrayOptionalSpecifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.

> [!NOTE]
> The `patterns_allowed` setting only applies to public repositories.
patterns_allowed[]stringEach item
verified_allowedbooleanOptionalWhether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.

Get an artifact — response body

FieldTypePresenceDescription and constraints
$objectRootAn artifact
archive_download_urlstringRequired within parent
created_atJSONRequired within parent
created_at (anyOf 1)stringAlternativeFormat: date-time
created_at (anyOf 2)nullAlternative
digestJSONOptional
digest (anyOf 1)stringAlternativeThe SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.
digest (anyOf 2)nullAlternative
expiredbooleanRequired within parentWhether or not the artifact has expired.
expires_atJSONRequired within parent
expires_at (anyOf 1)stringAlternativeFormat: date-time
expires_at (anyOf 2)nullAlternative
idJSONRequired within parent
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringRequired within parentThe name of the artifact.
node_idstringRequired within parent
size_in_bytesJSONRequired within parent
size_in_bytes (anyOf 1)integerAlternativeThe size in bytes of the artifact.
size_in_bytes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
updated_atJSONRequired within parent
updated_at (anyOf 1)stringAlternativeFormat: date-time
updated_at (anyOf 2)nullAlternative
urlstringRequired within parent
workflow_runJSONOptional
workflow_run (anyOf 1)objectAlternative
workflow_run (anyOf 1).head_branchstringOptional
workflow_run (anyOf 1).head_repository_idJSONOptional
workflow_run (anyOf 1).head_repository_id (anyOf 1)integerAlternative
workflow_run (anyOf 1).head_repository_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
workflow_run (anyOf 1).head_shastringOptional
workflow_run (anyOf 1).idJSONOptional
workflow_run (anyOf 1).id (anyOf 1)integerAlternative
workflow_run (anyOf 1).id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
workflow_run (anyOf 1).repository_idJSONOptional
workflow_run (anyOf 1).repository_id (anyOf 1)integerAlternative
workflow_run (anyOf 1).repository_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
workflow_run (anyOf 2)nullAlternative

Get an environment public key — response body

FieldTypePresenceDescription and constraints
$objectRootThe public key used for setting Actions Secrets.
created_atstringOptional
idJSONOptional
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
keystringRequired within parentThe Base64 encoded public key.
key_idstringRequired within parentThe identifier for the key.
titlestringOptional
urlstringOptional

Get an environment secret — response body

FieldTypePresenceDescription and constraints
$objectRootSet secrets for GitHub Actions.
created_atstringRequired within parentFormat: date-time
namestringRequired within parentThe name of the secret.
updated_atstringRequired within parentFormat: date-time

Get an environment variable — response body

FieldTypePresenceDescription and constraints
$objectRoot
created_atstringRequired within parentThe date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
Format: date-time
namestringRequired within parentThe name of the variable.
updated_atstringRequired within parentThe date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
Format: date-time
valuestringRequired within parentThe value of the variable.

Get an image version of a custom image for Git Hub Actions Hosted Runners — response body

FieldTypePresenceDescription and constraints
$objectRootProvides details of a hosted runner custom image version
created_onstringRequired within parentThe creation date time of the image version.
size_gbJSONRequired within parent
size_gb (anyOf 1)integerAlternativeImage version size in GB.
size_gb (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
statestringRequired within parentThe state of image version.
state_detailsstringRequired within parentThe image version status details.
versionstringRequired within parentThe version of image.

Get artifact and log retention settings for a repository — response body

FieldTypePresenceDescription and constraints
$objectRoot
daysJSONRequired within parent
days (anyOf 1)integerAlternativeThe number of days checks, workflow runs, commit statuses, artifacts, and logs are retained
days (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
maximum_allowed_daysJSONRequired within parent
maximum_allowed_days (anyOf 1)integerAlternativeThe maximum number of days that can be configured
maximum_allowed_days (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get default workflow permissions for a repository — response body

FieldTypePresenceDescription and constraints
$objectRoot
can_approve_pull_request_reviewsbooleanRequired within parentWhether GitHub Actions can approve pull requests. Enabling this can be a security risk.
default_workflow_permissionsstringRequired within parentThe default workflow permissions granted to the GITHUB_TOKEN when running workflows.
Known values: read, write

Get fork PR contributor approval permissions for a repository — response body

FieldTypePresenceDescription and constraints
$objectRoot
approval_policystringRequired within parentThe policy that controls when fork PR workflows require approval from a maintainer.
Known values: first_time_contributors_new_to_github, first_time_contributors, all_external_contributors

Get limits on Git Hub-hosted runners for an organization — response body

FieldTypePresenceDescription and constraints
$objectRoot
public_ipsobjectRequired within parentProvides details of static public IP limits for GitHub-hosted Hosted Runners
public_ips.current_usageJSONRequired within parent
public_ips.current_usage (anyOf 1)integerAlternativeThe current number of static public IP addresses in use by Hosted Runners.
public_ips.current_usage (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
public_ips.maximumJSONRequired within parent
public_ips.maximum (anyOf 1)integerAlternativeThe maximum number of static public IP addresses that can be used for Hosted Runners.
public_ips.maximum (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get partner images for Git Hub-hosted runners in an organization — response body — images item

FieldTypePresenceDescription and constraints
$objectRootProvides details of a hosted runner image
display_namestringRequired within parentDisplay name for this image.
idstringRequired within parentThe ID of the image. Use this ID for the `image` parameter when creating a new larger runner.
platformstringRequired within parentThe operating system of the image.
size_gbJSONRequired within parent
size_gb (anyOf 1)integerAlternativeImage size in GB.
size_gb (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
sourcestringRequired within parentThe image provider.
Known values: github, partner, custom

Get pending deployments for a workflow run — response body — item

FieldTypePresenceDescription and constraints
$objectRootDetails of a deployment that is waiting for protection rules to pass
current_user_can_approvebooleanRequired within parentWhether the currently authenticated user can approve the deployment
environmentobjectRequired within parent
environment.html_urlstringOptional
environment.idJSONOptional
environment.id (anyOf 1)integerAlternativeThe id of the environment.
Format: int64
environment.id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
environment.namestringOptionalThe name of the environment.
environment.node_idstringOptional
environment.urlstringOptional
reviewersarrayRequired within parentThe people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
reviewers[]objectEach item
reviewers[].reviewerJSONOptional
reviewers[].reviewer (anyOf 1)ModelAlternativeExpand List users — response body — item
reviewers[].reviewer (anyOf 2)ModelAlternativeExpand List teams — response body — item
reviewers[].typestringOptionalThe type of reviewer.
Known values: User, Team
wait_timerJSONRequired within parent
wait_timer (anyOf 1)integerAlternativeThe set duration of the wait timer
wait_timer (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
wait_timer_started_atJSONRequired within parent
wait_timer_started_at (anyOf 1)stringAlternativeThe time that the wait timer began.
Format: date-time
wait_timer_started_at (anyOf 2)nullAlternative

Referenced models: List users — response body — item, List teams — response body — item

Get private repo fork PR workflow settings for a repository — response body

FieldTypePresenceDescription and constraints
$objectRoot
require_approval_for_fork_pr_workflowsbooleanRequired within parentWhether workflows triggered by pull requests from forks require approval from a repository administrator to run.
run_workflows_from_fork_pull_requestsbooleanRequired within parentWhether workflows triggered by pull requests from forks are allowed to run on private repositories.
send_secrets_and_variablesbooleanRequired within parentWhether to make secrets and variables available to workflows triggered by pull requests from forks.
send_write_tokens_to_workflowsbooleanRequired within parentWhether GitHub Actions can create pull requests or submit approving pull request reviews from a workflow triggered by a fork pull request.

Get self-hosted runners settings for an organization — response body

FieldTypePresenceDescription and constraints
$objectRoot
enabled_repositoriesstringRequired within parentThe policy that controls whether self-hosted runners can be used by repositories in the organization
Known values: all, selected, none
selected_repositories_urlstringOptionalThe URL to the endpoint for managing selected repositories for self-hosted runners in the organization

Get the customization template for an OIDC subject claim for a repository — response body

FieldTypePresenceDescription and constraints
$objectRootActions OIDC subject customization for a repository
include_claim_keysarrayOptionalArray of unique strings. Each claim key can only contain alphanumeric characters and underscores.
include_claim_keys[]stringEach item
sub_claim_prefixstringOptionalThe current `sub` claim prefix for this repository.
use_defaultbooleanRequired within parentWhether to use the default template or not. If `true`, the `include_claim_keys` field is ignored.
use_immutable_subjectbooleanOptionalWhether 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.

Get the level of access for workflows outside of the repository — response body

FieldTypePresenceDescription and constraints
$objectRoot
access_levelstringRequired within parentDefines the level of access that workflows outside of the repository have to actions and reusable workflows within the
repository.

`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization.
Known values: none, user, organization

Get the review history for a workflow run — response body — item

FieldTypePresenceDescription and constraints
$objectRootAn entry in the reviews log for environment deployments
commentstringRequired within parentThe comment submitted with the deployment review
environmentsarrayRequired within parentThe list of environments that were approved or rejected
environments[]objectEach item
environments[].created_atstringOptionalThe time that the environment was created, in ISO 8601 format.
Format: date-time
environments[].html_urlstringOptional
environments[].idJSONOptional
environments[].id (anyOf 1)integerAlternativeThe id of the environment.
environments[].id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
environments[].namestringOptionalThe name of the environment.
environments[].node_idstringOptional
environments[].updated_atstringOptionalThe time that the environment was last updated, in ISO 8601 format.
Format: date-time
environments[].urlstringOptional
statestringRequired within parentWhether deployment to the environment(s) was approved or rejected or pending (with comments)
Known values: approved, rejected, pending
userModelRequired within parentExpand List users — response body — item

Referenced models: List users — response body — item

Get workflow run usage — response body

FieldTypePresenceDescription and constraints
$objectRootWorkflow Run Usage
billableobjectRequired within parent
billable.MACOSModelOptionalExpand Get workflow run usage — response body — billable MACOS
billable.UBUNTUModelOptionalExpand Get workflow run usage — response body — billable MACOS
billable.WINDOWSModelOptionalExpand Get workflow run usage — response body — billable MACOS
run_duration_msJSONOptional
run_duration_ms (anyOf 1)integerAlternative
run_duration_ms (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Get workflow run usage — response body — billable MACOS

Get workflow run usage — response body — billable MACOS

FieldTypePresenceDescription and constraints
$objectRoot
job_runsarrayOptional
job_runs[]objectEach item
job_runs[].duration_msJSONRequired within parent
job_runs[].duration_ms (anyOf 1)integerAlternative
job_runs[].duration_ms (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
job_runs[].job_idJSONRequired within parent
job_runs[].job_id (anyOf 1)integerAlternative
job_runs[].job_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
jobsJSONRequired within parent
jobs (anyOf 1)integerAlternative
jobs (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
total_msJSONRequired within parent
total_ms (anyOf 1)integerAlternative
total_ms (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get workflow usage — response body

FieldTypePresenceDescription and constraints
$objectRootWorkflow Usage
billableobjectRequired within parent
billable.MACOSobjectOptional
billable.MACOS.total_msJSONOptional
billable.MACOS.total_ms (anyOf 1)integerAlternative
billable.MACOS.total_ms (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
billable.UBUNTUobjectOptional
billable.UBUNTU.total_msJSONOptional
billable.UBUNTU.total_ms (anyOf 1)integerAlternative
billable.UBUNTU.total_ms (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
billable.WINDOWSobjectOptional
billable.WINDOWS.total_msJSONOptional
billable.WINDOWS.total_ms (anyOf 1)integerAlternative
billable.WINDOWS.total_ms (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

List Git Hub Actions caches for a repository — response body

FieldTypePresenceDescription and constraints
$objectRootRepository actions caches
actions_cachesarrayRequired within parentArray of caches
actions_caches[]objectEach item
actions_caches[].created_atstringOptionalFormat: date-time
actions_caches[].idJSONOptional
actions_caches[].id (anyOf 1)integerAlternative
actions_caches[].id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
actions_caches[].keystringOptional
actions_caches[].last_accessed_atstringOptionalFormat: date-time
actions_caches[].refstringOptional
actions_caches[].size_in_bytesJSONOptional
actions_caches[].size_in_bytes (anyOf 1)integerAlternative
actions_caches[].size_in_bytes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
actions_caches[].versionstringOptional
total_countJSONRequired within parent
total_count (anyOf 1)integerAlternativeTotal number of caches
total_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

List concurrency groups for a repository — response body

FieldTypePresenceDescription and constraints
$objectRootA list of active concurrency groups for a repository.
concurrency_groupsarrayRequired within parent
concurrency_groups[]objectEach item
concurrency_groups[].group_namestringRequired within parentThe name of the concurrency group.
concurrency_groups[].group_urlstringRequired within parentAPI URL for this concurrency group.
Format: uri
concurrency_groups[].last_acquired_atJSONRequired within parent
concurrency_groups[].last_acquired_at (anyOf 1)stringAlternativeFormat: date-time
concurrency_groups[].last_acquired_at (anyOf 2)nullAlternative
total_countJSONRequired within parent
total_count (anyOf 1)integerAlternative
total_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

List concurrency groups for a workflow run — response body

FieldTypePresenceDescription and constraints
$objectRootA list of concurrency groups associated with a workflow run.
concurrency_groupsarrayRequired within parent
concurrency_groups[]objectEach item
concurrency_groups[].group_membersarrayRequired within parentItems belonging to this workflow run that are either currently holding or
waiting for the concurrency group lease. May be empty if the run no
longer has any active or queued items in this group.
concurrency_groups[].group_members[]objectEach item
concurrency_groups[].group_members[].job_html_urlJSONOptional
concurrency_groups[].group_members[].job_html_url (anyOf 1)stringAlternativeWeb URL for the job.
Format: uri
concurrency_groups[].group_members[].job_html_url (anyOf 2)nullAlternative
concurrency_groups[].group_members[].job_idJSONOptional
concurrency_groups[].group_members[].job_id (anyOf 1)JSONAlternative
concurrency_groups[].group_members[].job_id (anyOf 1) (anyOf 1)integerAlternativeThe ID of the job, when the item represents a job-level or reusable-workflow-level lease.
concurrency_groups[].group_members[].job_id (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
concurrency_groups[].group_members[].job_id (anyOf 2)nullAlternative
concurrency_groups[].group_members[].job_nameJSONOptional
concurrency_groups[].group_members[].job_name (anyOf 1)stringAlternativeThe display name of the job, when the item represents a job-level or reusable-workflow-level lease.
concurrency_groups[].group_members[].job_name (anyOf 2)nullAlternative
concurrency_groups[].group_members[].job_urlJSONOptional
concurrency_groups[].group_members[].job_url (anyOf 1)stringAlternativeAPI URL for the job.
Format: uri
concurrency_groups[].group_members[].job_url (anyOf 2)nullAlternative
concurrency_groups[].group_members[].positionJSONRequired within parent
concurrency_groups[].group_members[].position (anyOf 1)integerAlternativeQueue position. 0 means the item holds the concurrency lease (in_progress), 1 or higher means queued (pending).
concurrency_groups[].group_members[].position (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
concurrency_groups[].group_members[].position_urlstringRequired within parentAPI URL to get items ahead of this item in the concurrency group.
Format: uri
concurrency_groups[].group_members[].run_html_urlJSONRequired within parent
concurrency_groups[].group_members[].run_html_url (anyOf 1)stringAlternativeWeb URL for the workflow run.
Format: uri
concurrency_groups[].group_members[].run_html_url (anyOf 2)nullAlternative
concurrency_groups[].group_members[].run_idJSONRequired within parent
concurrency_groups[].group_members[].run_id (anyOf 1)integerAlternativeThe ID of the workflow run.
concurrency_groups[].group_members[].run_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
concurrency_groups[].group_members[].run_namestringRequired within parentThe name of the workflow run.
concurrency_groups[].group_members[].run_urlJSONRequired within parent
concurrency_groups[].group_members[].run_url (anyOf 1)stringAlternativeAPI URL for the workflow run.
Format: uri
concurrency_groups[].group_members[].run_url (anyOf 2)nullAlternative
concurrency_groups[].group_members[].statusstringRequired within parentKnown values: in_progress, pending
concurrency_groups[].group_namestringRequired within parentThe name of the concurrency group.
concurrency_groups[].group_urlstringRequired within parentAPI URL for this concurrency group. May return 404 if the group
has no active items at the time it is requested, since the
get-by-name endpoint reports the live repo-wide state of a group
while this endpoint lists groups associated with a run by
configuration.
Format: uri
total_countJSONRequired within parent
total_count (anyOf 1)integerAlternativeThe total number of concurrency groups this workflow run participates in,
derived from the run's configuration. This count is not filtered by
whether the run currently holds or is waiting in each group, so it can
include groups whose `group_members` array is empty (for example, when
the run has already released its lease in that group).
total_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

List runner applications for a repository — response body — item

FieldTypePresenceDescription and constraints
$objectRootRunner Application
architecturestringRequired within parent
download_urlstringRequired within parent
filenamestringRequired within parent
osstringRequired within parent
sha256_checksumstringOptional
temp_download_tokenstringOptionalA short lived bearer token used to download the runner, if needed.

List workflow runs for a workflow — request body — query

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
actorstringOptional
branchstringOptional
eventstringOptional
statusstringOptionalOne of: completed, action_required, cancelled, failure, neutral, skipped, stale, success, timed_out, in_progress, queued, requested, waiting, pending
per_pageintegerOptionalDefault: 30
pageintegerOptionalDefault: 1
createdstringOptionalFormat: date-time
exclude_pull_requestsbooleanOptionalDefault: false
check_suite_idintegerOptionalFormat: int64
head_shastringOptional

Re-run a workflow — response body

FieldTypePresenceDescription and constraints
$objectRootAn object without any properties.
Additional keys: not allowed

Review custom deployment protection rules for a workflow run — request body — body / state: approved, rejected

FieldTypePresenceDescription and constraints
$objectRoot
commentstringOptionalOptional comment to include with the review.
environment_namestringRequired within parentThe name of the environment to approve or reject.
statestringRequired within parentWhether to approve or reject deployment to the specified environments.
One of: approved, rejected

Review custom deployment protection rules for a workflow run — request body — body comment, environment name

FieldTypePresenceDescription and constraints
$objectRoot
commentstringRequired within parentComment associated with the pending deployment protection rule. **Required when state is not provided.**
environment_namestringRequired within parentThe name of the environment to approve or reject.

Set Git Hub Actions cache retention limit for a repository — request body — body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache retention policy for a repository.
max_cache_retention_daysintegerOptionalThe maximum number of days to keep caches in this repository.

Set Git Hub Actions cache retention limit for an enterprise — request body — body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache retention policy for an enterprise.
max_cache_retention_daysintegerOptionalFor repositories & organizations in an enterprise, the maximum duration, in days, for which caches in a repository may be retained.

Set Git Hub Actions cache retention limit for an organization — request body — body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache retention policy for an organization.
max_cache_retention_daysintegerOptionalFor repositories in this organization, the maximum duration, in days, for which caches in a repository may be retained.

Set Git Hub Actions cache storage limit for a repository — request body — body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache storage policy for a repository.
max_cache_size_gbintegerOptionalThe maximum total cache size for this repository, in gigabytes.

Set Git Hub Actions cache storage limit for an enterprise — request body — body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache storage policy for an enterprise.
max_cache_size_gbintegerOptionalFor repositories & organizations in an enterprise, the maximum size limit for the sum of all caches in a repository, in gigabytes.

Set Git Hub Actions cache storage limit for an organization — request body — body

FieldTypePresenceDescription and constraints
$objectRootGitHub Actions cache storage policy for an organization.
max_cache_size_gbintegerOptionalFor repositories in the organization, the maximum size limit for the sum of all caches in a repository, in gigabytes.

Set artifact and log retention settings for a repository — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
daysintegerRequired within parentThe number of days to retain checks, workflow runs, commit statuses, artifacts, and logs

Set default workflow permissions for a repository — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
can_approve_pull_request_reviewsbooleanOptionalWhether GitHub Actions can approve pull requests. Enabling this can be a security risk.
default_workflow_permissionsstringOptionalThe default workflow permissions granted to the GITHUB_TOKEN when running workflows.
One of: read, write

Set fork PR contributor approval permissions for a repository — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
approval_policystringRequired within parentThe policy that controls when fork PR workflows require approval from a maintainer.
One of: first_time_contributors_new_to_github, first_time_contributors, all_external_contributors

Set private repo fork PR workflow settings for a repository — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
require_approval_for_fork_pr_workflowsbooleanOptionalWhether workflows triggered by pull requests from forks require approval from a repository administrator to run.
run_workflows_from_fork_pull_requestsbooleanRequired within parentWhether workflows triggered by pull requests from forks are allowed to run on private repositories.
send_secrets_and_variablesbooleanOptionalWhether to make secrets and variables available to workflows triggered by pull requests from forks.
send_write_tokens_to_workflowsbooleanOptionalWhether GitHub Actions can create pull requests or submit approving pull request reviews from a workflow triggered by a fork pull request.

Set the level of access for workflows outside of the repository — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
access_levelstringRequired within parentDefines the level of access that workflows outside of the repository have to actions and reusable workflows within the
repository.

`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization.
One of: none, user, organization

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.