From 4cb66a5911a75c3526ab6037d7a08127abbdae7a Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 8 Oct 2024 13:08:58 +0100 Subject: [PATCH] gosec --- ssv/spectest/generate/main.go | 2 +- types/spectest/generate/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()) } }