From 19032b01af6cd851b0a001446ead7a36f890f090 Mon Sep 17 00:00:00 2001 From: Lior Okman Date: Wed, 24 Apr 2024 03:59:59 +0300 Subject: [PATCH] fix: make Write create files without the executable bit set (#3255) YAML files shouldn't be created with the executable bit turned on. Signed-off-by: Lior Okman --- internal/utils/file/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/file/file.go b/internal/utils/file/file.go index fc4ce527e17..369920b0f9a 100644 --- a/internal/utils/file/file.go +++ b/internal/utils/file/file.go @@ -11,7 +11,7 @@ import ( ) func Write(data string, filepath string) error { - file, err := os.OpenFile(filepath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0755) + file, err := os.OpenFile(filepath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) if err != nil { return err }