From aee1ba623932aa887a3a442437edb03b9cd7e6cc Mon Sep 17 00:00:00 2001 From: Vincent Mercier Date: Thu, 25 Jan 2024 10:14:55 +0100 Subject: [PATCH] chore(semgrep): Ignore false postive alert Signed-off-by: Vincent Mercier --- internal/infra/http/homepage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/infra/http/homepage.go b/internal/infra/http/homepage.go index 1d07607..af8bcff 100644 --- a/internal/infra/http/homepage.go +++ b/internal/infra/http/homepage.go @@ -53,5 +53,5 @@ func NewHomePage(version string, metricPath string) (*homeHandler, error) { func (h homeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { w.Header().Add("Content-Type", "text/html; charset=UTF-8") - _, _ = w.Write(h.content) + _, _ = w.Write(h.content) // nosemgrep: go.lang.security.audit.xss.no-direct-write-to-responsewriter.no-direct-write-to-responsewriter // h.content is rendered by html/template in constructor }