12 lines
332 B
Bash
12 lines
332 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
helper=$(dirname "$0")/compose-helper.sh
|
|
for action in deploy up down docker; do
|
|
if bash "$helper" "$action" >/dev/null 2>&1; then
|
|
printf 'FAIL Compose helper accepted %s\n' "$action" >&2
|
|
exit 1
|
|
fi
|
|
done
|
|
echo 'PASS Compose helper rejects operations outside its read-only allowlist'
|