Sign inSign up

sbx/github-clone:latest

Multi-platform
Manifest digest

sha256:9f1cd39d1394075c11cf5939c06738b7f3c2f4f7b2729dc950321d3a31af9bec

Last pushed

about 7 hours by sbx

Type

Sandbox Kit

Manifest digest

sha256:9f1cd39d1394075c11cf5939c06738b7f3c2f4f7b2729dc950321d3a31af9bec

MIXIN

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.


Arguments
NameRequiredDefaultDescription
dirOptional/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).

refOptional

Optional git ref (branch, tag, or 7–40 hex commit SHA) to check out. Empty (the default) clones the repo's default branch.

repoRequired—

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.


CapabilitiesExpand a row to see its full configuration.
TypeRequiredDescription
com.docker.sandbox/network-policy@1Required—
com.docker.sandbox/lifecycle@1Required—
com.docker.sandbox/agent-context@1Required—

Apply this mixin to a sandbox

sbx run <agent> --kit sbx/github-clone:latest --set repo=<repo>

Make sure you have docker sbx installed

Run the following command to install sbx on your machine.

macOS
brew install docker/tap/sbx
Windows
winget install Docker.sbx
Learn more about docker sbx⁠