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

Merged
guettlibot merged 6 commits from issue-414-ensure-not-run-as-root into main 2026-06-05 16:41:39 +00:00
Showing only changes of commit 2fa6d437ef - Show all commits
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
[ "$(id -u)" != "0" ] || { echo "ERROR: Do not run as root. See DEVELOPMENT.md."; exit 1; }
[ "${CI:-}" = "true" ] || [ "$(id -u)" != "0" ] || { echo "ERROR: Do not run as root. See DEVELOPMENT.md."; exit 1; }
if [ -z "${SOPS_AGE_KEY:-}" ]; then
echo "Error: SOPS_AGE_KEY must be set."