auto-sync: 2026-06-08 00:20:31
This commit is contained in:
@@ -426,7 +426,8 @@ async def gitea_webhook(
|
||||
|
||||
# 1. 签名验证
|
||||
if not _verify_signature(body, x_gitea_signature):
|
||||
logger.warning("Webhook signature verification failed")
|
||||
logger.warning("Webhook signature verification failed (has_signature=%s, expected_prefix=%s)",
|
||||
bool(x_gitea_signature), _WEBHOOK_SECRET[:8] if _WEBHOOK_SECRET else "none")
|
||||
return Response(status_code=403, content="signature verification failed")
|
||||
|
||||
# 2. 幂等检查
|
||||
|
||||
Reference in New Issue
Block a user