Harden admin telemetry and deployment safeguards
TaxBaik CI/CD / build-and-deploy (push) Successful in 4m30s
TaxBaik CI/CD / build-and-deploy (push) Successful in 4m30s
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
targets=(
|
||||
".gitea/workflows/deploy.yml"
|
||||
"deploy.sh"
|
||||
"deploy_gb.sh"
|
||||
)
|
||||
|
||||
for file in "${targets[@]}"; do
|
||||
if [ ! -f "$file" ]; then
|
||||
echo "Missing KST target file: $file" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
if grep -nE 'date \+%Y%m%d_%H%M%S|date \+%Y%m%d' "${targets[@]}" | grep -v 'TZ=Asia/Seoul' >/dev/null; then
|
||||
echo "Timestamp generation must use TZ=Asia/Seoul." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "KST timestamp harness passed."
|
||||
Reference in New Issue
Block a user