sha256:2aa2a7cebf9b7b2d74f059bc1486f9a7a6ce06718e89f0d77b2dd0c029be404b
Last pushed
9 days by cdupuis
Type
Sandbox Kit
Manifest digest
sha256:2aa2a7cebf9b7b2d74f059bc1486f9a7a6ce06718e89f0d77b2dd0c029be404b
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). |
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. |
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. |
| Type | Required | Description | |
|---|---|---|---|
com.docker.sandbox/network-policy@1 | Required | — | |
com.docker.sandbox/lifecycle@1 | Required | — | |
com.docker.sandbox/agent-context@1 | Required | — | |
sbx run <agent> --kit docker/sbx-kit-github-clone:latest --set repo=<repo>Run the following command to install sbx on your machine.
brew install docker/tap/sbxwinget install Docker.sbx