From de27f01ae7caaa0a7f48df1ec5fcab49eff3da6c Mon Sep 17 00:00:00 2001 From: kennytm Date: Thu, 30 Apr 2020 06:30:58 +0800 Subject: [PATCH] Fix gosec G306 error --- internal/backend/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/fs.go b/internal/backend/fs.go index c9d35dd213..8a776f07bc 100644 --- a/internal/backend/fs.go +++ b/internal/backend/fs.go @@ -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