Sign inSign up

sbx/github-clone:latest

Multi-platform
Manifest digest

sha256:c5ba9206289e20c503f0aeb03d5aca2e82e218db40badc6694c6f0f7a3df40c7

Last pushed

about 1 hour by dhibot

Type

Sandbox Kit

Manifest digest

sha256:c5ba9206289e20c503f0aeb03d5aca2e82e218db40badc6694c6f0f7a3df40c7

MIXIN

Clones a GitHub repository at create time, using gh when authenticated and Git for public HTTPS or SSH transport.


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.

versionRequired—

Kit revision supplied by the DHI build


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

Apply this mixin to a sandbox

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

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⁠