#!/usr/bin/env bash set -euo pipefail if [ -z "${WEBHOOK_SECRET:-}" ]; then echo "Error: WEBHOOK_SECRET is not set" exit 1 fi envsubst < /etc/webhook/hooks.json.template > /tmp/hooks.json exec webhook -hooks /tmp/hooks.json -verbose