mirror of
https://github.com/tildeclub/launcher.git
synced 2026-10-25 08:25:38 +00:00
Harden script approvals and add migration support
This commit is contained in:
7 files changed
+963
-339
No files matched your search
Executable
+15
@@ -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'
|
||||
Reference in new issue
Block a user