From 9b237658482fed09cf5ec8b731f294cdd403ac80 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Thu, 23 Jul 2026 05:00:28 -0700 Subject: [PATCH] fix(sandbox): remove tar file after extraction to avoid healthcheck false positives --- internal/executor/sandbox/executor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/executor/sandbox/executor.go b/internal/executor/sandbox/executor.go index fd6f1c0..786b03b 100644 --- a/internal/executor/sandbox/executor.go +++ b/internal/executor/sandbox/executor.go @@ -102,8 +102,8 @@ func (e *Sandbox) runWithTar(cmds []stage.Cmd, tarData []byte) ([]stage.Executor tarFileName := "/w/__joj3_copyin.tar" script := fmt.Sprintf( - "/bin/tar xf %s -C / --no-same-owner && exec \"$@\"", - tarFileName, + "/bin/tar xf %s -C / --no-same-owner && rm %s && exec \"$@\"", + tarFileName, tarFileName, ) cmds[0].CopyIn[tarFileName] = stage.CmdFile{FileID: &fid}