Skip to content

Commit

Permalink
golangci-lint
Browse files Browse the repository at this point in the history
Signed-off-by: Nghia Tran <[email protected]>
  • Loading branch information
tcnghia committed Dec 21, 2023
1 parent cb01946 commit 2bb0869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/otel/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func NewCollectorWithConfig(configYAML string) (*otelcol.Collector, error) {
if configYAML == "" {
configYAML = defaultConfig
}
if err := os.WriteFile(configFile.Name(), []byte(configYAML), 0644); err != nil {
if err := os.WriteFile(configFile.Name(), []byte(configYAML), 0600); err != nil {
return nil, err
}
return newCollectorWithFlags(settings, configFile.Name())
Expand Down

0 comments on commit 2bb0869

Please sign in to comment.