style(build): silence gosec file inclusion via variable error

This commit is contained in:
Jack Westbrook
2025-03-03 11:51:29 +01:00
parent 2fd491d101
commit 4d13e996b4
+1
View File
@@ -29,6 +29,7 @@ func PackFrontendPackages(ctx context.Context, tag, grafanaDir, artifactsDir str
}
nxJSONPath := filepath.Join(grafanaDir, "nx.json")
// nolint:gosec
nxJson, err := os.ReadFile(nxJSONPath)
if err != nil {
return fmt.Errorf("failed to read nx.json: %w", err)