Skip to main content

variables

Overview

Namevariables
TypeResource
Idgithub.actions.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.
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.

Methods

NameAccessible byRequired ParamsDescription
get_environment_variableSELECTenvironment_name, name, repository_idGets a specific variable in an environment.

You must authenticate using an access token with the repo 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 environments:read repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
get_repo_variableSELECTname, owner, repoGets a specific variable in a repository.

You must authenticate using an access token with the repo 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 actions_variables:read repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
list_environment_variablesSELECTenvironment_name, repository_idLists all environment variables.

You must authenticate using an access token with the repo 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 environments:read repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
list_repo_variablesSELECTowner, repoLists all repository variables.
You must authenticate using an access token with the repo 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 actions_variables:read repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
create_environment_variableINSERTenvironment_name, repository_id, data__name, data__valueCreate an environment variable that you can reference in a GitHub Actions workflow.

You must authenticate using an access token with the repo 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 environment:write repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
create_repo_variableINSERTowner, repo, data__name, data__valueCreates a repository variable that you can reference in a GitHub Actions workflow.

You must authenticate using an access token with the repo 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 actions_variables:write repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
delete_environment_variableDELETEenvironment_name, name, repository_idDeletes an environment variable using the variable name.

You must authenticate using an access token with the repo 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 environment:write repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
delete_repo_variableDELETEname, owner, repoDeletes a repository variable using the variable name.

You must authenticate using an access token with the repo 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 actions_variables:write repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
update_environment_variableEXECenvironment_name, name, repository_idUpdates an environment variable that you can reference in a GitHub Actions workflow.

You must authenticate using an access token with the repo 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 environment:write repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
update_repo_variableEXECname, owner, repoUpdates a repository variable that you can reference in a GitHub Actions workflow.

You must authenticate using an access token with the repo 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 actions_variables:write repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.