sha256:110c30c90a97…
2 Bytes
v2
about 2 hours ago
Clones a GitHub repository into the sandbox at create time, using the gh CLI with a proxy-managed GH_TOKEN sentinel. Auto-installs gh if the base image doesn't have it.
| Name | Required | Default | Description |
|---|---|---|---|
dir | Optional | /project | Absolute directory inside the sandbox to clone into. If the directory already exists and is non-empty, the clone is skipped (the mixin re-runs cleanly on `sbx create` retries). |
pr | Optional | | Optional pull request number to check out with `gh pr checkout` after the clone. The PR lands on a local branch, so `git push` from the sandbox updates it. Empty (the default) leaves the working copy on `ref` or the repo's default branch. Mutually exclusive with `ref`. |
ref | Optional | | Optional git ref (branch, tag, or 7–40 hex commit SHA) to check out. Empty (the default) clones the repo's default branch. Mutually exclusive with `pr`. |
repo | Required | — | GitHub repository to clone. Accepts the `owner/name` shorthand, a full `https://github.com/owner/name[.git]` URL, or an `[email protected]:owner/name[.git]` SSH URL. Any other form is rejected before the clone shells out. |
| Name | Service | Required | Description |
|---|---|---|---|
GH_TOKEN | github | Optional | Token used to clone the repository and for later gh/git operations. |
api.github.com
github.com
codeload.github.com
raw.githubusercontent.com
cli.github.com
archive.ubuntu.com
security.ubuntu.com
ports.ubuntu.com
download.docker.com
sbx run <agent> --kit docker.io/cdupuis/sbx-kits:github-clone --set repo=<repo>Run the following command to install sbx on your machine.
brew install docker/tap/sbxwinget install Docker.sbx