feat: default ubuntu-latest to act-latest and document the security model #6

Merged
ivuorinen merged 4 commits from act-latest-default into main 2026-09-27 21:03:00 +00:00
Owner

Summary

  • The default ubuntu-latest label now runs jobs in ghcr.io/catthehacker/ubuntu:act-latest (root) instead of runner-latest (user runner). Actions that install into system paths failed under runner-latest, e.g. actions/setup-dotnet: mkdir: cannot create directory '/usr/share/dotnet': Permission denied. Changed in compose.yaml, entrypoint.sh, .env.example, the README and both tests.
  • The README gains a Security section and a reworded opening: jobs reach DinD's daemon without authentication and dind is privileged, so a workflow can gain root on the host whatever user the job image runs as. The trust boundary is who can run workflows on the runner; create runners at the narrowest scope and keep untrusted fork workflows off them.
  • Spec and plan: docs/superpowers/specs/2026-09-27-act-latest-default-design.md, docs/superpowers/plans/2026-09-27-act-latest-default.md.

Rollout

No migration. Redeploying re-declares the labels to Forgejo. Resources with RUNNER_LABELS set explicitly keep their value.

Testing

  • shellcheck entrypoint.sh healthcheck.sh tests/*.sh, hadolint Dockerfile: clean
  • sh tests/entrypoint.test.sh, sh tests/compose.test.sh: all checks pass
## Summary - The default `ubuntu-latest` label now runs jobs in `ghcr.io/catthehacker/ubuntu:act-latest` (root) instead of `runner-latest` (user `runner`). Actions that install into system paths failed under `runner-latest`, e.g. `actions/setup-dotnet`: `mkdir: cannot create directory '/usr/share/dotnet': Permission denied`. Changed in `compose.yaml`, `entrypoint.sh`, `.env.example`, the README and both tests. - The README gains a **Security** section and a reworded opening: jobs reach DinD's daemon without authentication and `dind` is privileged, so a workflow can gain root on the host whatever user the job image runs as. The trust boundary is who can run workflows on the runner; create runners at the narrowest scope and keep untrusted fork workflows off them. - Spec and plan: `docs/superpowers/specs/2026-09-27-act-latest-default-design.md`, `docs/superpowers/plans/2026-09-27-act-latest-default.md`. ## Rollout No migration. Redeploying re-declares the labels to Forgejo. Resources with `RUNNER_LABELS` set explicitly keep their value. ## Testing - `shellcheck entrypoint.sh healthcheck.sh tests/*.sh`, `hadolint Dockerfile`: clean - `sh tests/entrypoint.test.sh`, `sh tests/compose.test.sh`: all checks pass
ivuorinen deleted branch act-latest-default 2026-09-27 21:03:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ivuorinen/coolify-forgejo-runners!6
No description provided.