Skip to main content

org_variables

Overview

Nameorg_variables
TypeResource
Idgithub.actions.org_variables

Fields

NameDatatypeDescription
namestringThe name of the variable.
created_atstringThe date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
selected_repositories_urlstring
updated_atstringThe date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
valuestringThe value of the variable.
visibilitystringVisibility of a variable

Methods

NameAccessible byRequired ParamsDescription
get_org_variableSELECTname, orgGets a specific variable in an organization.

You must authenticate using an access token with the admin:org scope to use this endpoint.
If the repository is private, you must use an access token with the repo scope.
GitHub Apps must have the organization_actions_variables:read organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
list_org_variablesSELECTorgLists all organization variables.
You must authenticate using an access token with the admin:org scope to use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the organization_actions_variables:read organization permission to use this endpoint. Authenticated users must have collaborator access to a repository to create, update, or read variables.
create_org_variableINSERTorg, data__name, data__value, data__visibilityCreates an organization variable that you can reference in a GitHub Actions workflow.

You must authenticate using an access token with the admin:org scope to use this endpoint.
If the repository is private, you must use an access token with the repo scope.
GitHub Apps must have the organization_actions_variables:write organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
delete_org_variableDELETEname, orgDeletes an organization variable using the variable name.

You must authenticate using an access token with the admin:org scope to use this endpoint.
If the repository is private, you must use an access token with the repo scope.
GitHub Apps must have the organization_actions_variables:write organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
update_org_variableEXECname, orgUpdates an organization variable that you can reference in a GitHub Actions workflow.

You must authenticate using an access token with the admin:org scope to use this endpoint.
If the repository is private, you must use an access token with the repo scope.
GitHub Apps must have the organization_actions_variables:write organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.