HUB
Sign inSign up

djordjelukic1639080/pi-sbx-github-clone:0.1.0

Manifest digest

sha256:41354e9475d1f250e59613eb55e8041b62ee45311bc1623c5259d604caabdeb5

Last pushed

2 months by djordjelukic1639080

Type

Sandbox Kit

Manifest digest

sha256:41354e9475d1f250e59613eb55e8041b62ee45311bc1623c5259d604caabdeb5

MIXINREQUIRES 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 djordjelukic1639080/pi-sbx-github-clone:0.1.0

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(opens in new tab)