fix: enforce non-root execution in Taskfile and shell scripts (#433)

This commit was merged in pull request #433.
This commit is contained in:
Bot of Thomas Güttler
2026-06-05 18:41:36 +02:00
parent adef2e9f80
commit 9ca7089c50
6 changed files with 8 additions and 0 deletions
+2
View File
@@ -37,6 +37,8 @@ tasks:
run: once
deps: [_nix-check]
preconditions:
- sh: '[ "$(id -u)" != "0" ]'
msg: "Do not run as root. Use the dedicated dev user (see DEVELOPMENT.md)."
- sh: test -n "${IN_NIX_SHELL}"
msg: "Not in nix dev shell. Run: nix develop"
cmds: