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
|The name of the codespace For example, |
|The email for the "author" field of future |
|The name for the "committer" field of future |
|Returns the domain of the GitHub Codespaces forwarded port. For example, |
|Returns the API URL. For example, |
|Returns the GraphQL API URL. For example, |
|The owner and repository name. For example, |
|Returns the URL of the GitHub Enterprise Cloud server. For example, |
|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 "Security in GitHub Codespaces."|
|The name of the user that initiated the codespace. For example, |