sha256:41354e9475d1f250e59613eb55e8041b62ee45311bc1623c5259d604caabdeb5
Last pushed
2 months by djordjelukic1639080
Type
Sandbox Kit
Manifest digest
sha256:41354e9475d1f250e59613eb55e8041b62ee45311bc1623c5259d604caabdeb5
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. |
sbx run <agent> --kit djordjelukic1639080/pi-sbx-github-clone:0.1.0Run the following command to install sbx on your machine.
brew install docker/tap/sbxwinget install Docker.sbx