We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b43bfeb commit de20b8dCopy full SHA for de20b8d
1 file changed
cmd/postgres-operator/open_telemetry.go
@@ -35,6 +35,7 @@ func initOpenTelemetry() (func(), error) {
35
options := []stdouttrace.Option{}
36
37
if filename != "" {
38
+ //nolint:gosec // G703: Path from OTEL_JSON_FILE env var is operator-controlled configuration.
39
file, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o644)
40
if err != nil {
41
return nil, fmt.Errorf("unable to open exporter file: %w", err)
0 commit comments