From 612c07a6b9640a12bd0fa350bf765e2f6f53d762 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 15 Nov 2023 16:32:31 +0100 Subject: [PATCH] gosec --- server/start.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/start.go b/server/start.go index 0477cc6557..3863144995 100644 --- a/server/start.go +++ b/server/start.go @@ -305,6 +305,7 @@ func startInProcess(ctx *server.Context, clientCtx client.Context, opts StartOpt ctx.Logger.Debug("failed to get filepath for the CPU profile file", "error", err.Error()) return err } + // #nosec G304 - users can't control the filepath f, err := os.Create(fp) if err != nil { return err