Sign inSign up

cdupuis/sbx-kits

By cdupuis

Updated about 2 hours ago

Sandbox Kit
0

302

cdupuis/sbx-kits repository overview

Digest

sha256:110c30c90a97…

Size

2 Bytes

Schema

v2

Pushed

about 2 hours ago

Specificationspec.yaml

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 docker.io/cdupuis/sbx-kits:github-clone --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
No overview available
This repository doesn't have an overview