Skip to content

Commit

Permalink
Fix G302 errors in gosec evaluation (#705)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored Mar 26, 2020
1 parent e8a218e commit 49a10c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/fileexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (f *Factory) createExporter(config configmodels.Exporter) (*Exporter, error
exporter, ok := exporters[cfg]

if !ok {
file, err := os.OpenFile(cfg.Path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
file, err := os.OpenFile(cfg.Path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0600)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 49a10c2

Please sign in to comment.