Skip to content

Commit

Permalink
gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Nov 15, 2023
1 parent d7f9652 commit 612c07a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 612c07a

Please sign in to comment.