From 92409368830fab7f825a41fd55d7080da72ce7be Mon Sep 17 00:00:00 2001 From: Kristina Pathak Date: Tue, 5 Mar 2024 18:58:17 -0800 Subject: [PATCH] change test go.mod permissions --- cmd/builder/internal/builder/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/builder/internal/builder/main_test.go b/cmd/builder/internal/builder/main_test.go index d8f88e12a46..3d6a9a9631f 100644 --- a/cmd/builder/internal/builder/main_test.go +++ b/cmd/builder/internal/builder/main_test.go @@ -181,7 +181,7 @@ func makeModule(dir string) error { return fmt.Errorf("failed to create output path: %w", err) } - err := os.WriteFile(filepath.Clean(filepath.Join(dir, "go.mod")), []byte(goModTestFile), 0644) + err := os.WriteFile(filepath.Clean(filepath.Join(dir, "go.mod")), []byte(goModTestFile), 0600) if err != nil { return fmt.Errorf("failed to write go.mod file: %w", err) }