act_runner/internal/pkg
Zettat123 ec38401097 Add `ValidVolumes` config (#226)
Follow https://gitea.com/gitea/act/pulls/60, https://gitea.com/gitea/act/pulls/64

This PR adds the `valid_volumes` configuration. `valid_volumes` is a sequence containing the volumes (including bind mounts) that can be mounted to the container. By default, `valid_volumes` is empty, which means that no volumes can be mounted. Users can specify multiple valid volumes and [glob](https://github.com/gobwas/glob) is supported.

All volumes will be allowed when using `exec` to run workflows locally.

Reviewed-on: https://gitea.com/gitea/act_runner/pulls/226
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Jason Song <i@wolfogre.com>
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-committed-by: Zettat123 <zettat123@gmail.com>
2023-06-16 06:07:48 +00:00
..
client Support changing labels (#201) 2023-06-15 03:59:15 +00:00
config Add `ValidVolumes` config (#226) 2023-06-16 06:07:48 +00:00
envcheck Refactor to new framework (#98) 2023-04-04 21:32:04 +08:00
labels Support changing labels (#201) 2023-06-15 03:59:15 +00:00
report Skip counting log length when parseLogRow return nil (#176) 2023-05-06 17:00:52 +08:00
ver Refactor to new framework (#98) 2023-04-04 21:32:04 +08:00