Install gh (GitHub CLI) in the default sandbox rootfs#463
Open
ZIJ wants to merge 1 commit into
Open
Conversation
Agents 'cannot connect to github' because gh isn't in the sandbox. It's not in Ubuntu's default repos, so add GitHub's apt source (signed-by keyring via curl, which the main apt block installs) and install gh. The 'default' template is the image all agent sandboxes run on. arch-agnostic (dpkg --print-architecture) for amd64/arm64 VMs. Built/validated by scripts/build-rootfs.sh in CI (rootfs build isn't runnable locally). Other templates (node/python/ubuntu) can get the same block if agents ever use them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Papercut: agents hit "cannot connect to github" —
ghisn't available in the sandbox.ghisn't in Ubuntu's default apt repos, so this adds GitHub's apt source (signed-by keyring fetched withcurl, which the main package block already installs) and installsghin a dedicatedRUN, matching how rclone/nodesource are added. arch-agnostic viadpkg --print-architecture(amd64/arm64). Lands inDockerfile.default— the image all agent sandboxes run on.Validated by inspection against GitHub's documented install; the rootfs build runs in CI (
scripts/build-rootfs.sh), not locally. Follow-up (optional): same block for thenode/python/ubuntutemplates if agents use them.🤖 Generated with Claude Code