Harden script approvals and add migration support

This commit is contained in:
deepend committed 2026-10-22 18:55:21 -06:00
1 parent 2afad63802
commit 426ea638ae
7 files changed
+963 -339

No files matched your search

Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
sh -n tilde
[ "$(./tilde --version)" = 0.2.0 ]
./tilde --help | grep -q 'migrate'
if ./tilde run '../etc/passwd' >/dev/null 2>&1; then
printf 'Path traversal was accepted\n' >&2
exit 1
fi
if ./tilde revoke '../etc/passwd' >/dev/null 2>&1; then
printf 'Unsafe revocation was accepted\n' >&2
exit 1
fi
printf 'Smoke tests passed.\n'