Use the sandkiln-run GitHub Action to test untrusted pull-request code inside a microVM instead of on the runner.
CI runs code that changes with every pull request. The sandkiln-run composite action runs it in a fresh microVM with no outbound network, then destroys the VM, so the runner only checks out and uploads the code.
What you need
A reachable sandkilnd. GitHub-hosted runners are clients only: GitHub documents nested virtualization as “not officially supported”, and no published guest kernel or rootfs exists for starting a daemon inside a job. The design note has the research and the three topologies.
Topology
Runner
Daemon
Use when
Remote daemon
any
HTTPS, with an auth_token
You already host a daemon and want any runner to use it
Self-hosted runner
on the KVM host
http://127.0.0.1:7777
You operate the host and want no public endpoint
Daemon in a hosted runner
hosted
inside the job
Not supported
Never expose a daemon without an auth_token: anyone who can reach it can run code on your host. Put it behind TLS, store the token as a secret, and restrict by IP or a private tunnel where the runner’s address is stable.
Use the action
Store SANDKILN_DAEMON_URL and SANDKILN_AUTH_TOKEN as repository secrets, then:
The step fails with the command’s exit code, streams its output, and exposes sandbox-id and exit-code. A final step destroys the sandbox after a failure, a timeout or a cancelled run alike (observed on a GitHub-hosted runner). Set keep-on-failure: "true" to keep it for debugging, then remove it with kiln sandbox rm <id> --destroy. Sandboxes carry github-run and github-repo tags, so kiln sandbox ls shows orphans.
Safe defaults
egress defaults to deny_all; allow specific CIDRs with allow-cidrs.
.git is never uploaded, because checkout can leave a credential there.
Fork pull requests get no secrets, so skip them rather than switching to pull_request_target, unless nothing from the pull request runs on the runner.
Do not trigger a self-hosted runner from fork pull requests on a public repository.
Limits
The workspace is uploaded as one tar.gz through the file API, so exclude build output with exclude.
The timeout is enforced inside the sandbox with timeout from the image (exit code 124); an image without it only gets a client-side limit that abandons the stream.
A runner machine that dies mid-job runs no final step, so the sandbox lives on. Find it by its github-run tag.
The image needs sh and tar.
The action’s reference lists every input, and the example has both workflows and a sample project. The action ran on GitHub-hosted runners against a stub daemon on 2026-11-24 (wiring, exit codes, cleanup, token masking, cancellation); the real daemon and a microVM were only exercised from a developer machine, never from a hosted runner.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"sandkiln","description":"Docs for sandkiln -- a compute primitive for safely running untrusted or AI-generated code in hardware-isolated Firecracker microVMs.","colors":{"primary":"#ae5309","light":"#ffa13b","dark":"#ae5309"},"logo":{"light":"https://mintcdn.com/sandkiln/QltJmzd4LgnFQYWg/images/logo-light.svg?fit=max\u0026auto=format\u0026n=QltJmzd4LgnFQYWg\u0026q=85\u0026s=7316dfcbdf5fbc27152db5f53eec6b46","dark":"https://mintcdn.com/sandkiln/QltJmzd4LgnFQYWg/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=QltJmzd4LgnFQYWg\u0026q=85\u0026s=68b36090e9d8cad4588d790cecfc1c29","href":"https://sandkiln.vercel.app"},"favicon":"https://mintcdn.com/sandkiln/QltJmzd4LgnFQYWg/favicon.svg?fit=max\u0026auto=format\u0026n=QltJmzd4LgnFQYWg\u0026q=85\u0026s=17265b82344e69fa84162a963d0d2109","navbar":{"links":[{"href":"https://sandkiln.vercel.app","label":"Website"},{"href":"https://github.com/SumitKumar-17/sandkiln","type":"github"}]},"footer":{"socials":{"github":"https://github.com/SumitKumar-17/sandkiln"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sandkiln","hasAudioNarration":false,"actualSubdomain":"sandkiln","customDomains":[],"gitSource":{"type":"github","owner":"sumitkumar-17","repo":"sandkiln","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b05f4fcadf8e52894d4c3ee","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Architecture","count":32},{"language":"default","tag":"Docs","count":29},{"language":"default","tag":"API Reference","count":24},{"language":"default","tag":"Performance","count":19},{"language":"default","tag":"Internals","count":15},{"language":"default","tag":"Optimizations","count":13},{"language":"default","tag":"Core Concepts","count":10},{"language":"default","tag":"Case studies","count":9},{"language":"default","tag":"How it works","count":9},{"language":"default","tag":"CLI (kiln)","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/run-ci-jobs-in-a-sandbox","slug":"/guides/run-ci-jobs-in-a-sandbox","pageMetadata":{"title":"Run CI jobs in a sandbox","description":"Use the sandkiln-run GitHub Action to test untrusted pull-request code inside a microVM instead of on the runner.","href":"/guides/run-ci-jobs-in-a-sandbox"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Use the sandkiln-run GitHub Action to test untrusted pull-request code inside a microVM instead of on the runner.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`CI runs code that changes with every pull request. The `,_jsx(_components.code,{children:`sandkiln-run`}),` composite action runs it in a fresh microVM with no outbound network, then destroys the VM, so the runner only checks out and uploads the code.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-need`,children:`What you need`}),`\n`,_jsxs(_components.p,{children:[`A reachable `,_jsx(_components.code,{children:`sandkilnd`}),`. GitHub-hosted runners are clients only: GitHub documents nested virtualization as “not officially supported”, and no published guest kernel or rootfs exists for starting a daemon inside a job. The `,_jsx(_components.a,{href:`https://github.com/SumitKumar-17/sandkiln/blob/main/docs/design-notes/ci-integration.md`,children:`design note`}),` has the research and the three topologies.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Topology`}),_jsx(_components.th,{children:`Runner`}),_jsx(_components.th,{children:`Daemon`}),_jsx(_components.th,{children:`Use when`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Remote daemon`}),_jsx(_components.td,{children:`any`}),_jsxs(_components.td,{children:[`HTTPS, with an `,_jsx(_components.code,{children:`auth_token`})]}),_jsx(_components.td,{children:`You already host a daemon and want any runner to use it`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Self-hosted runner`}),_jsx(_components.td,{children:`on the KVM host`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`http://127.0.0.1:7777`})}),_jsx(_components.td,{children:`You operate the host and want no public endpoint`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Daemon in a hosted runner`}),_jsx(_components.td,{children:`hosted`}),_jsx(_components.td,{children:`inside the job`}),_jsx(_components.td,{children:`Not supported`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Never expose a daemon without an `,_jsx(_components.code,{children:`auth_token`}),`: anyone who can reach it can run code on your host. Put it behind TLS, store the token as a secret, and restrict by IP or a private tunnel where the runner’s address is stable.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`use-the-action`,children:`Use the action`}),`\n`,_jsxs(_components.p,{children:[`Store `,_jsx(_components.code,{children:`SANDKILN_DAEMON_URL`}),` and `,_jsx(_components.code,{children:`SANDKILN_AUTH_TOKEN`}),` as repository secrets, then:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`jobs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` test`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` runs-on`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`ubuntu-latest`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` steps`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`uses`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`actions/checkout@v4`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` persist-credentials`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`uses`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`./.github/actions/sandkiln-run`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` daemon-url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"${{ secrets.SANDKILN_DAEMON_URL }}\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` auth-token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"${{ secrets.SANDKILN_AUTH_TOKEN }}\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` egress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`deny_all`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` timeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"300\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` command`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`python3 -m unittest discover -v tests`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The step fails with the command’s exit code, streams its output, and exposes `,_jsx(_components.code,{children:`sandbox-id`}),` and `,_jsx(_components.code,{children:`exit-code`}),`. A final step destroys the sandbox after a failure, a timeout or a cancelled run alike (observed on a GitHub-hosted runner). Set `,_jsx(_components.code,{children:`keep-on-failure: \"true\"`}),` to keep it for debugging, then remove it with `,_jsx(_components.code,{children:`kiln sandbox rm \u003cid> --destroy`}),`. Sandboxes carry `,_jsx(_components.code,{children:`github-run`}),` and `,_jsx(_components.code,{children:`github-repo`}),` tags, so `,_jsx(_components.code,{children:`kiln sandbox ls`}),` shows orphans.`]}),`\n`,_jsx(Heading,{level:`2`,id:`safe-defaults`,children:`Safe defaults`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`egress`}),` defaults to `,_jsx(_components.code,{children:`deny_all`}),`; allow specific CIDRs with `,_jsx(_components.code,{children:`allow-cidrs`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`.git`}),` is never uploaded, because checkout can leave a credential there.`]}),`\n`,_jsxs(_components.li,{children:[`Fork pull requests get no secrets, so skip them rather than switching to `,_jsx(_components.code,{children:`pull_request_target`}),`, unless nothing from the pull request runs on the runner.`]}),`\n`,_jsx(_components.li,{children:`Do not trigger a self-hosted runner from fork pull requests on a public repository.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`limits`,children:`Limits`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The workspace is uploaded as one `,_jsx(_components.code,{children:`tar.gz`}),` through the file API, so exclude build output with `,_jsx(_components.code,{children:`exclude`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`The timeout is enforced inside the sandbox with `,_jsx(_components.code,{children:`timeout`}),` from the image (exit code 124); an image without it only gets a client-side limit that abandons the stream.`]}),`\n`,_jsxs(_components.li,{children:[`A runner machine that dies mid-job runs no final step, so the sandbox lives on. Find it by its `,_jsx(_components.code,{children:`github-run`}),` tag.`]}),`\n`,_jsxs(_components.li,{children:[`The image needs `,_jsx(_components.code,{children:`sh`}),` and `,_jsx(_components.code,{children:`tar`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The action’s `,_jsx(_components.a,{href:`https://github.com/SumitKumar-17/sandkiln/blob/main/.github/actions/sandkiln-run/README.md`,children:`reference`}),` lists every input, and the `,_jsx(_components.a,{href:`https://github.com/SumitKumar-17/sandkiln/tree/main/examples/github-actions`,children:`example`}),` has both workflows and a sample project. The action ran on GitHub-hosted runners against a stub daemon on 2026-11-24 (wiring, exit codes, cleanup, token masking, cancellation); the real daemon and a microVM were only exercised from a developer machine, never from a hosted runner.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Run CI jobs in a sandbox","description":"Use the sandkiln-run GitHub Action to test untrusted pull-request code inside a microVM instead of on the runner.","href":"/guides/run-ci-jobs-in-a-sandbox"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What you need","slug":"what-you-need","depth":2,"children":[]},{"title":"Use the action","slug":"use-the-action","depth":2,"children":[]},{"title":"Safe defaults","slug":"safe-defaults","depth":2,"children":[]},{"title":"Limits","slug":"limits","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"sandkiln","siteName":"sandkiln","title":"Run CI jobs in a sandbox - sandkiln","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T04:43:08.198Z","originalFileLocation":"guides/run-ci-jobs-in-a-sandbox.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Use the sandkiln-run GitHub Action to test untrusted pull-request code inside a microVM instead of on the runner.\">\u003cmeta data-mint-head name=\"application-name\" content=\"sandkiln\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sandkiln/jN0EPBsqkJj9qRoT/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/sandkiln/jN0EPBsqkJj9qRoT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sandkiln/jN0EPBsqkJj9qRoT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sandkiln/jN0EPBsqkJj9qRoT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sandkiln/jN0EPBsqkJj9qRoT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sandkiln/jN0EPBsqkJj9qRoT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sandkiln/jN0EPBsqkJj9qRoT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sandkiln/jN0EPBsqkJj9qRoT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sandkiln/jN0EPBsqkJj9qRoT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run CI jobs in a sandbox - sandkiln\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use the sandkiln-run GitHub Action to test untrusted pull-request code inside a microVM instead of on the runner.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"sandkiln\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://sandkiln.mintlify.app/guides/run-ci-jobs-in-a-sandbox\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sandkiln.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Run+CI+jobs+in+a+sandbox\u0026amp;description=Use+the+sandkiln-run+GitHub+Action+to+test+untrusted+pull-request+code+inside+a+microVM+instead+of+on+the+runner.\u0026amp;theme=5062b2391bfa4363f555e439\u0026amp;signature=b2689c71c73aa1451575035bc746f2e8d78db9ac169dafb3ed396aab7b7af57b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Run CI jobs in a sandbox - sandkiln\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use the sandkiln-run GitHub Action to test untrusted pull-request code inside a microVM instead of on the runner.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sandkiln.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Run+CI+jobs+in+a+sandbox\u0026amp;description=Use+the+sandkiln-run+GitHub+Action+to+test+untrusted+pull-request+code+inside+a+microVM+instead+of+on+the+runner.\u0026amp;theme=5062b2391bfa4363f555e439\u0026amp;signature=b2689c71c73aa1451575035bc746f2e8d78db9ac169dafb3ed396aab7b7af57b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/sandkiln/jN0EPBsqkJj9qRoT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"sandkiln\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ae5309\">\u003clink data-mint-head rel=\"canonical\" href=\"https://sandkiln.mintlify.app/guides/run-ci-jobs-in-a-sandbox\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/run-ci-jobs-in-a-sandbox.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://sandkiln.mintlify.app/#organization\",\"name\":\"sandkiln\",\"url\":\"https://sandkiln.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sandkiln/QltJmzd4LgnFQYWg/images/logo-light.svg?fit=max\u0026auto=format\u0026n=QltJmzd4LgnFQYWg\u0026q=85\u0026s=7316dfcbdf5fbc27152db5f53eec6b46\"}},{\"@type\":\"WebSite\",\"@id\":\"https://sandkiln.mintlify.app#website\",\"name\":\"sandkiln\",\"url\":\"https://sandkiln.mintlify.app\",\"publisher\":{\"@id\":\"https://sandkiln.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://sandkiln.mintlify.app/guides/run-ci-jobs-in-a-sandbox#webpage\",\"url\":\"https://sandkiln.mintlify.app/guides/run-ci-jobs-in-a-sandbox\",\"name\":\"Run CI jobs in a sandbox\",\"description\":\"Use the sandkiln-run GitHub Action to test untrusted pull-request code inside a microVM instead of on the runner.\",\"dateModified\":\"2026-11-24T04:43:08.198Z\",\"isPartOf\":{\"@id\":\"https://sandkiln.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://sandkiln.mintlify.app/guides/run-ci-jobs-in-a-sandbox#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://sandkiln.mintlify.app/guides/run-ci-jobs-in-a-sandbox#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://sandkiln.mintlify.app/guides/run-untrusted-code\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run CI jobs in a sandbox\",\"item\":\"https://sandkiln.mintlify.app/guides/run-ci-jobs-in-a-sandbox\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://sandkiln.mintlify.app/guides/run-ci-jobs-in-a-sandbox#article\",\"headline\":\"Run CI jobs in a sandbox\",\"name\":\"Run CI jobs in a sandbox\",\"description\":\"Use the sandkiln-run GitHub Action to test untrusted pull-request code inside a microVM instead of on the runner.\",\"url\":\"https://sandkiln.mintlify.app/guides/run-ci-jobs-in-a-sandbox\",\"mainEntityOfPage\":{\"@id\":\"https://sandkiln.mintlify.app/guides/run-ci-jobs-in-a-sandbox#webpage\"},\"dateModified\":\"2026-11-24T04:43:08.198Z\",\"publisher\":{\"@id\":\"https://sandkiln.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://sandkiln.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"sandkiln\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"sandkiln\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/run-ci-jobs-in-a-sandbox.md","siteName":"sandkiln","nav":{"global":null,"tabs":[{"tab":"Docs","icon":"book-open","groups":[{"group":"Getting Started","pages":[{"title":"sandkiln docs","href":""},{"title":"Introduction","href":"/getting-started/introduction"},{"title":"Self-hosting quickstart","href":"/getting-started/self-hosting"},{"title":"First sandbox: JS/TS","href":"/getting-started/js"},{"title":"First sandbox: Python","href":"/getting-started/python"},{"title":"First sandbox: CLI","href":"/getting-started/cli"},{"title":"First sandbox: MCP","href":"/getting-started/mcp"}]},{"group":"Self-Hosting","pages":[{"title":"Manual host setup","href":"/self-hosting/manual-setup"},{"title":"Jailer setup","href":"/self-hosting/jailer"},{"title":"Configuration","href":"/self-hosting/configuration"},{"title":"Operations and security","href":"/self-hosting/operations"},{"title":"Troubleshooting","href":"/self-hosting/troubleshooting"}]},{"group":"Core Concepts","pages":[{"title":"Sandbox lifecycle","href":"/concepts/sandbox-lifecycle"},{"title":"Snapshots, resume, and fork","href":"/concepts/snapshots"},{"title":"Named sandboxes \u0026 persistent stop","href":"/concepts/named-sandboxes"},{"title":"Drives","href":"/concepts/drives"},{"title":"Remote storage mounts","href":"/concepts/remote-storage"},{"title":"Custom \u0026 managed images","href":"/concepts/images"},{"title":"Networking \u0026 isolation","href":"/concepts/networking"},{"title":"Auth","href":"/concepts/auth"},{"title":"Dev-server preview","href":"/concepts/preview"},{"title":"Local tunnel","href":"/concepts/local-tunnel"}]},{"group":"Guides","pages":[{"title":"Run untrusted AI-generated code safely","href":"/guides/run-untrusted-code"},{"title":"Persist state across runs by name","href":"/guides/persist-by-name"},{"title":"Share a drive read-only","href":"/guides/share-a-drive"},{"title":"Boot from a custom image","href":"/guides/custom-image"},{"title":"Auto-suspend idle sandboxes","description":"Reclaim resources from forgotten sandboxes automatically.","href":"/guides/auto-suspend"},{"title":"Run CI jobs in a sandbox","href":"/guides/run-ci-jobs-in-a-sandbox"}]},{"group":"Release Notes","pages":[{"title":"Changelog","description":"Every real change, nothing rounded up, across the daemon, the clients and the docs.","href":"/release-notes"}]}]},{"tab":"API Reference","icon":"square-terminal","pages":[{"title":"API Reference","href":"/api-reference/http-api/overview"}]},{"tab":"Architecture","pages":[{"title":"Architecture","href":"/architecture/overview"}]},{"tab":"Performance","pages":[{"title":"Performance","href":"/performance/current-numbers"}]},{"tab":"Case studies","pages":[{"title":"Case studies","href":"/engineering/26-correctness-long-running-exec"}]}]},"basePath":"","title":"Run CI jobs in a sandbox - sandkiln","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":[],"chunks":[]}