diff --git a/ssv/spectest/generate/main.go b/ssv/spectest/generate/main.go index 0b2b49654..d719fed78 100644 --- a/ssv/spectest/generate/main.go +++ b/ssv/spectest/generate/main.go @@ -157,7 +157,7 @@ func writeJson(name string, data []byte) { file := filepath.Join(basedir, name+".json") log.Printf("writing spec tests json to: %s\n", file) - if err := os.WriteFile(file, data, 0644); err != nil { + if err := os.WriteFile(file, data, 0400); err != nil { panic(err.Error()) } } diff --git a/types/spectest/generate/main.go b/types/spectest/generate/main.go index 9f1ffb97a..f55357174 100644 --- a/types/spectest/generate/main.go +++ b/types/spectest/generate/main.go @@ -131,7 +131,7 @@ func writeJson(name string, data []byte) { file := filepath.Join(basedir, name+".json") log.Printf("writing spec tests json to: %s\n", file) - if err := os.WriteFile(file, data, 0644); err != nil { + if err := os.WriteFile(file, data, 0400); err != nil { panic(err.Error()) } }