diff --git a/ops/manual-build/README.md b/ops/manual-build/README.md index 9355f32..76886a7 100644 --- a/ops/manual-build/README.md +++ b/ops/manual-build/README.md @@ -24,7 +24,7 @@ access. Only trusted team workflows may run. Jobs have no socket, registration state or permitted host-volume mounts. The runner exposes no ports, cache or metrics listener. Jobs use the separate manual-build-jobs bridge, a 256 MiB memory ceiling, no swap, 0.65 CPU and a PID limit of 256. The runner itself is -limited to 96 MiB and 0.25 CPU. This does not protect the host against a malicious +limited to 192 MiB (Go soft memory target 128 MiB) and 0.25 CPU. This does not protect the host against a malicious trusted workflow or Docker administrator. Workflow triggers must remain push only on main/manual-build-validation; do not enable untrusted PR jobs. diff --git a/ops/manual-build/runner-compose.yaml b/ops/manual-build/runner-compose.yaml index 7dbd7c4..69550d5 100644 --- a/ops/manual-build/runner-compose.yaml +++ b/ops/manual-build/runner-compose.yaml @@ -6,7 +6,10 @@ services: restart: unless-stopped entrypoint: [act_runner] command: [daemon, --config, /config.yaml] - mem_limit: 96m + mem_limit: 192m + memswap_limit: 192m + environment: + GOMEMLIMIT: 128MiB cpus: 0.25 volumes: - ./state:/data