From c51e92ed7ef8864a0038207b0aee896ec2828b06 Mon Sep 17 00:00:00 2001 From: Codex Date: Mon, 6 Jul 2026 02:56:31 +0000 Subject: [PATCH] fix: make gitea webhook test post through stdin --- scripts/src/platform-infra-gitea-remote.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/platform-infra-gitea-remote.sh b/scripts/src/platform-infra-gitea-remote.sh index a743916e..ff9e9eee 100644 --- a/scripts/src/platform-infra-gitea-remote.sh +++ b/scripts/src/platform-infra-gitea-remote.sh @@ -789,7 +789,7 @@ sys.exit(0 if payload["ok"] else 1) PY ping_rc=$? repos_inline=$(cat "$tmp/repos.json") - kubectl -n "$UNIDESK_GITEA_NAMESPACE" exec deploy/"$UNIDESK_GITEA_WEBHOOK_DEPLOYMENT" -- node - "$UNIDESK_GITEA_WEBHOOK_PATH" "$repos_inline" >"$tmp/webhook-test.out" 2>"$tmp/webhook-test.err" <<'NODE' + kubectl -n "$UNIDESK_GITEA_NAMESPACE" exec -i deploy/"$UNIDESK_GITEA_WEBHOOK_DEPLOYMENT" -- node - "$UNIDESK_GITEA_WEBHOOK_PATH" "$repos_inline" >"$tmp/webhook-test.out" 2>"$tmp/webhook-test.err" <<'NODE' const http = require('node:http'); const crypto = require('node:crypto'); const path = process.argv[2];