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
6 Commits
Author SHA1 Message Date
Thomas SharedInbox 47f14bff34 Merge remote-tracking branch 'origin/main' into issue-414-ensure-not-run-as-root 2026-06-05 18:11:39 +02:00
Thomas SharedInbox b7baf02c1a Merge remote-tracking branch 'origin/main' into issue-414-ensure-not-run-as-root 2026-06-05 18:01:14 +02:00
Thomas SharedInbox 1de0a993fe ci: retrigger after Dagger engine restart 2026-06-05 17:27:38 +02:00
Thomas SharedInboxandClaude Sonnet 4.6 2fa6d437ef fix: skip non-root check when running in CI environment
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05 17:11:08 +02:00
Thomas SharedInbox f3692095e8 Merge branch 'main' into issue-414-ensure-not-run-as-root 2026-06-05 17:10:33 +02:00
Thomas SharedInboxandClaude Sonnet 4.6 f7fbb9cf7b fix: enforce non-root execution in Taskfile and shell scripts
Adds a root-user guard to Taskfile's _preflight task (the shared
precondition for all local task commands) and to five scripts that can
be invoked directly outside of `task`. Also adds `rm -f` before
writing ~/.ssh/dagger_key in setup_dagger_remote.sh to safely remove
any existing file or symlink before writing the new key.

Closes #414

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 22:46:08 +02:00