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_NAME | The name of the codespace For example, monalisa-github-hello-world-2f2fsdf2e |
CODESPACES | Always true while in a codespace |
GIT_COMMITTER_EMAIL | The email for the "author" field of future git commits. |
GIT_COMMITTER_NAME | The name for the "committer" field of future git commits. |
GITHUB_API_URL | API URL を返します。 For example, https://api.github.com . |
GITHUB_GRAPHQL_URL | グラフ QL API の URL を返します。 For example, https://api.github.com/graphql . |
GITHUB_REPOSITORY | 所有者およびリポジトリの名前。 octocat/Hello-World などです。 |
GITHUB_SERVER_URL | GitHub Enterprise Cloud サーバーの URL を返します。 For example, https://github.com . |
GITHUB_TOKEN | A 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_USER | The name of the user that initiated the codespace. octocat などです。 |