From 900a38524fcfde27277a5e04894559b1ac63fc89 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 8 Jun 2026 08:03:50 +0800 Subject: [PATCH] auto-sync: 2026-06-08 08:03:50 --- src/api/toolchain_routes.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/api/toolchain_routes.py b/src/api/toolchain_routes.py index fddb1e2..89d9c1a 100644 --- a/src/api/toolchain_routes.py +++ b/src/api/toolchain_routes.py @@ -426,10 +426,7 @@ async def gitea_webhook( # 1. 签名验证 if not _verify_signature(body, x_gitea_signature): - logger.warning("Webhook signature verification failed (has_sig=%s, sig=%s, expected=%s)", - bool(x_gitea_signature), - x_gitea_signature[:16] if x_gitea_signature else "none", - hmac.new(_WEBHOOK_SECRET.encode(), body, hashlib.sha256).hexdigest()[:16]) + logger.warning("Webhook signature verification failed") return Response(status_code=403, content="signature verification failed") # 2. 幂等检查