Sign inSign up

sbx/github-clone-kit:20260928-7da9425e640d172e36abe6de3499a1c75d416c0f

Manifest digest

sha256:3de9685c6d5072763260fee09054a0751a24c0a87d32925b60d538e099c4f09b

Last pushed

4 days by dockerpublicbot

Type

Sandbox Kit

Manifest digest

sha256:3de9685c6d5072763260fee09054a0751a24c0a87d32925b60d538e099c4f09b

MIXIN
REQUIRES SECRETS

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).

prOptional

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`.

refOptional

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`.

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.


Credentials
NameServiceRequiredDescription
GH_TOKENgithubOptionalToken used to clone the repository and for later gh/git operations.

Network Egress

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

Apply this mixin to a sandbox

sbx run <agent> --kit sbx/github-clone-kit:20260928-7da9425e640d172e36abe6de3499a1c75d416c0f --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⁠