act_runner/internal/app
Zettat123 35400f76fa Add parent directory for working directory (#154)
Fixes #145

At present, the working directory of a work flow is a path like `/<owner>/<repo>`, so the directory may conflict with system directory like `/usr/bin`. We need to add a parent directory for the working directory.
In this PR, the parent directory is `/workspace` by default and users could configure it by the `workdir_parent` option.

This change doesn't affect the host mode because in host mode the working directory will always be in `$HOME/.cache/act/` directory.

Co-authored-by: Jason Song <i@wolfogre.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/154
Reviewed-by: Jason Song <i@wolfogre.com>
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-committed-by: Zettat123 <zettat123@gmail.com>
2023-04-28 22:03:52 +08:00
..
artifactcache allow building act_runner with cgo (#137) 2023-04-24 10:45:51 +08:00
cmd Run as a container (#8) including Docker-in-Docker. (#84) 2023-04-11 10:58:12 +08:00
poll Fix panic when response is nil (#105) 2023-04-06 21:51:46 +08:00
run Add parent directory for working directory (#154) 2023-04-28 22:03:52 +08:00