From d50ee6513eea9d9b939e43f02894303aa021d151 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 27 Dec 2024 13:12:39 +0100 Subject: [PATCH] user: actions: options are limited to --volume and --tmpfs --- docs/user/actions.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/user/actions.md b/docs/user/actions.md index e60c8237..2d15add9 100644 --- a/docs/user/actions.md +++ b/docs/user/actions.md @@ -218,7 +218,10 @@ A list of command and arguments, equivalent to [[COMMAND] [ARG...]](https://docs ### options -A string of additional options, as documented [docker run](https://docs.docker.com/engine/reference/commandline/run/). For instance: "--workdir /myworkdir --ulimit nofile=1024:1024". +A string of the following additional options, as documented [docker run](https://docs.docker.com/engine/reference/commandline/run/). + +- `--volume` +- `--tmpfs` > **NOTE:** the `--volume` option is restricted to a allowlist of volumes configured in the runner executing the task. See the [Forgejo Actions administrator guide](../../admin/actions/) for more information. @@ -880,7 +883,10 @@ Set the volumes for the container to use, as if provided with the `--volume` arg ### `jobs..container.options` -A string of additional options, as documented in [docker run](https://docs.docker.com/engine/reference/commandline/run/). For instance: "--workdir /myworkdir --ulimit nofile=1024:1024". +A string of the following additional options, as documented [docker run](https://docs.docker.com/engine/reference/commandline/run/). + +- `--volume` +- `--tmpfs` > **NOTE:** the `--volume` option is restricted to a allowlist of volumes configured in the runner executing the task. See the [Forgejo Actions administrator guide](../../admin/actions/) for more information.