vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Let a job declare the secrets it reads
4ac42680eca3181efc70099f65d6e2c9f45e9dd2 · Keenan Nemetz · 7d ago · parent 0c40a1d3
Let a job declare the secrets it reads
A job now names the repository secrets it needs, and the instance delivers
those values when the job is leased. The workflow carries names only, so the
queue row, the metadata branch and the run record never hold a value: the
record names the version of each value the job ran with, which is what makes a
result say which one it used.
jobs:
deploy:
image: alpine:3.22
secrets: [DEPLOY_KEY]
A name the repository has no value for is not a failure. The variable is left
unset rather than empty, the step's shell can tell the difference, and the
runner writes one line to the log saying which value was missing. That keeps
an optional secret optional and leaves "required" with the step, where someone
can write the message: ${DEPLOY_KEY:?DEPLOY_KEY is not set}.
The value reaches the step through a file the runner writes into the run
directory it already mounts at /run/vole for an event payload, and each step is
prefixed with `. /run/vole/secrets.env`. That is deliberately not an env-file
argument to the runtime, which cannot carry a line break, and not --env, which
puts the value in the process's argument list where every process on the host
can read it. A local `vole workflow run` writes the same file, reading the
values with the developer's own credential, and says which ones it could not
read.
The name rule and the 128 KiB limit moved to ci, next to the environment rules
they mirror, so the store refuses a name no workflow could declare and the
workflow refuses a name no process environment could carry.
Slice 2 of #154.
docs/cli.md +4−2
| @@ -272,8 +272,10 @@ vole workflow dispatch --remote <name|url> --workflow <path> [--ref <branch>] | |||
| 272 | 272 | [--input name=value]... | |
| 273 | 273 | ``` | |
| 274 | 274 | ||
| 275 | `workflow run` executes steps in the working tree, in the job's image, with no | ||
| 276 | server or runner. It needs a container runtime; there is no host mode. Both it and | ||
| 275 | `workflow run` executes steps in the working tree, in the job's image. It needs no | ||
| 276 | runner, but it does read the secrets its jobs declare from the instance the | ||
| 277 | checkout's `origin` names, using your key; a value it cannot read is left unset with | ||
| 278 | a note. It needs a container runtime; there is no host mode. Both it and | ||
| 277 | 279 | `vole runner` reuse a job cache (see [Runners § Caching](runner.md#caching)). See | |
| 278 | 280 | [Workflows § Check and run a workflow locally](workflows.md#check-and-run-a-workflow-locally). | |
| 279 | 281 | ||