From 3bab05bb71bfdddc31d8932c2fb486da9b654042 Mon Sep 17 00:00:00 2001 From: justusbunsi <61625851+justusbunsi@users.noreply.github.com> Date: Sun, 10 Oct 2021 13:07:10 +0200 Subject: [PATCH] Fix required header for SonarQube endpoint Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com> --- internal/webhook_handler/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/webhook_handler/main.go b/internal/webhook_handler/main.go index 4f82395..9e27466 100644 --- a/internal/webhook_handler/main.go +++ b/internal/webhook_handler/main.go @@ -21,7 +21,7 @@ func addPingApi(r *gin.Engine) { } type validSonarQubeEndpointHeader struct { - SonarQubeProject string `header:"X-SonarQube-Project"` + SonarQubeProject string `header:"X-SonarQube-Project" binding:"required"` } func addSonarQubeEndpoint(r *gin.Engine) {