Skip to content

Commit bffa220

Browse files
authored
Merge pull request #13276 from github/repo-sync
repo sync
2 parents 229a4bc + 64e04f4 commit bffa220

3 files changed

Lines changed: 43 additions & 8 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@
3232
"postCreateCommand": "npm ci && npm run build",
3333

3434
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
35-
"remoteUser": "node",
36-
37-
// Test restricting low-spec machines
38-
"hostRequirements": {
39-
"cpus": 8,
40-
"memory": "8gb",
41-
"storage": "32gb"
42-
}
35+
"remoteUser": "node"
36+
4337
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Default environment variables for your codespace
3+
shortTitle: Default environment variables
4+
product: '{% data reusables.gated-features.codespaces %}'
5+
permissions: '{% data reusables.codespaces.availability %}'
6+
intro: '{% data variables.product.prodname_dotcom %} sets default environment variables for each codespace.'
7+
versions:
8+
fpt: '*'
9+
ghec: '*'
10+
type: overview
11+
topics:
12+
- Codespaces
13+
- Fundamentals
14+
- Developer
15+
---
16+
17+
## About default environment variables
18+
19+
{% data variables.product.prodname_dotcom %} sets default environment variables for every codespace. Commands run in codespaces can create, read, and modify environment variables.
20+
21+
{% note %}
22+
23+
**Note**: Environment variables are case-sensitive.
24+
25+
{% endnote %}
26+
27+
## List of default environment variables
28+
29+
| Environment variable | Description |
30+
| ---------------------|------------ |
31+
| `CODESPACE_NAME` | The name of the codespace For example, `monalisa-github-hello-world-2f2fsdf2e` |
32+
| `CODESPACES` | Always `true` while in a codespace |
33+
| `GIT_COMMITTER_EMAIL` | The email for the "author" field of future `git` commits. |
34+
| `GIT_COMMITTER_NAME` | The name for the "committer" field of future `git` commits. |
35+
| `GITHUB_API_URL` | Returns the API URL. For example, `{% data variables.product.api_url_code %}`. |
36+
| `GITHUB_GRAPHQL_URL` | Returns the GraphQL API URL. For example, `{% data variables.product.graphql_url_code %}`. |
37+
| `GITHUB_REPOSITORY` | The owner and repository name. For example, `octocat/Hello-World`. |
38+
| `GITHUB_SERVER_URL`| Returns the URL of the {% data variables.product.product_name %} server. For example, `https://{% data variables.product.product_url %}`. |
39+
| `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](/codespaces/codespaces-reference/security-in-codespaces#authentication)." |
40+
| `GITHUB_USER` | The name of the user that initiated the codespace. For example, `octocat`. |

content/codespaces/developing-in-codespaces/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ children:
1515
- /using-codespaces-for-pull-requests
1616
- /deleting-a-codespace
1717
- /forwarding-ports-in-your-codespace
18+
- /default-environment-variables-for-your-codespace
1819
- /connecting-to-a-private-network
1920
- /using-codespaces-in-visual-studio-code
2021
- /using-codespaces-with-github-cli

0 commit comments

Comments
 (0)