From 8c0a6aa0cc5decaffbd27c52551656c51917b2b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Gomez?= Date: Thu, 8 Feb 2024 23:14:36 +0100 Subject: [PATCH] Stricter permissions on schemas --- cmd/generate-jsonschema/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/generate-jsonschema/main.go b/cmd/generate-jsonschema/main.go index 6a690c66..9377da27 100644 --- a/cmd/generate-jsonschema/main.go +++ b/cmd/generate-jsonschema/main.go @@ -48,7 +48,7 @@ func main() { panic(fmt.Errorf("could not marshal schema to JSON: %w", err)) } - if err := os.WriteFile(fmt.Sprintf("./schemas/%s.json", t.name), schemaJSON, 0644); err != nil { + if err := os.WriteFile(fmt.Sprintf("./schemas/%s.json", t.name), schemaJSON, 0600); err != nil { panic(fmt.Errorf("could not write schema: %w", err)) } }