fix(eve): run the sandbox image as its workspace owner - #1692
Closed
vercel-gh-bot-3[bot] wants to merge 1 commit into
Closed
fix(eve): run the sandbox image as its workspace owner#1692vercel-gh-bot-3[bot] wants to merge 1 commit into
vercel-gh-bot-3[bot] wants to merge 1 commit into
Conversation
Co-authored-by: ruiconti <1834568+ruiconti@users.noreply.github.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Docker Image Size Summary:
|
| Metric | Baseline | Current | Delta |
|---|---|---|---|
| Image size | 583.31 MB | 583.31 MB | 0 B |
Metadata
- Current:
pull request (cf613d2) - Generated at:
2026-08-05T19:19:27.069Z
Contributor
|
@!e0 needs repro |
5 tasks
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.
The published sandbox image starts commands as
root, but/workspacebelongs tovercel-sandbox. Git rejects the GitHub channel checkout as dubious ownership, and the turn continues with an empty workspace. Fixes #1596.Approach
Set the image's default user to
vercel-sandboxafter the privileged setup completes. Vercel Sandbox runs non-sudo commands as the image's default user, so this aligns the command user with the existing workspace owner. Passwordlesssudoremains available for commands that need root access.Validation
git remote addexits 128 whenrootopens a repository owned by another UIDgit remote addsucceedspnpm guard:invariantsgit diff --checkThe sandbox does not expose Docker, so I could not build and run the image locally. The pull request's Container Image workflow builds the image for
linux/amd64andlinux/arm64.Requested by: ruiconti