fix: engine - set 777 permissions for temp dir (#6)

This commit is contained in:
Anton
2024-01-18 00:15:33 +05:00
parent 314987ae43
commit 8178918c6e
3 changed files with 55 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ func NewDocker(cfg *config.Config, sandbox, command string) Engine {
// Exec executes the command and returns the output.
func (e *Docker) Exec(req Request) Execution {
// all steps operate in the same temp directory
dir, err := os.MkdirTemp("", "")
dir, err := fileio.MkdirTemp(0777)
if err != nil {
err = NewExecutionError("create temp dir", err)
return Fail(req.ID, err)