Skip to main content

Default environment variables for your codespace

GitHub sets default environment variables for each codespace.

Codespaces are available for repositories owned by organizations using GitHub Team and GitHub Enterprise Cloud.

Codespaces is available for organizations using GitHub Team or GitHub Enterprise Cloud. 詳しい情報については「GitHubの製品」を参照してください。

About default environment variables

GitHub sets default environment variables for every codespace. Commands run in codespaces can create, read, and modify environment variables.

Note: Environment variables are case-sensitive.

List of default environment variables

CODESPACE_NAMEThe name of the codespace For example, monalisa-github-hello-world-2f2fsdf2e
CODESPACESAlways true while in a codespace
GIT_COMMITTER_EMAILThe email for the "author" field of future git commits.
GIT_COMMITTER_NAMEThe name for the "committer" field of future git commits.
GITHUB_API_URLAPI URL を返します。 For example,
GITHUB_GRAPHQL_URLグラフ QL API の URL を返します。 For example,
GITHUB_REPOSITORY所有者およびリポジトリの名前。 octocat/Hello-Worldなどです。
GITHUB_SERVER_URLGitHub サーバーの URL を返します。 For example,
GITHUB_TOKENA signed auth token representing the user in the codespace. You can use this to make authenticated calls to the GitHub API. For more information, see "Authentication."
GITHUB_USERThe name of the user that initiated the codespace. octocatなどです。