Skip to content

Commit

Permalink
Fix gosec G306 error
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Apr 29, 2020
1 parent 9fc0ceb commit de27f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (s *storageFS) CreateObject(obj Object) error {
if err != nil {
return err
}
return ioutil.WriteFile(filepath.Join(s.rootDir, url.PathEscape(obj.BucketName), url.PathEscape(obj.Name)), encoded, 0664)
return ioutil.WriteFile(filepath.Join(s.rootDir, url.PathEscape(obj.BucketName), url.PathEscape(obj.Name)), encoded, 0600)
}

// ListObjects lists the objects in a given bucket with a given prefix and
Expand Down

0 comments on commit de27f01

Please sign in to comment.