From 4034f805462b50a5459c1b83ef479b237adce2af Mon Sep 17 00:00:00 2001 From: Joe Sirianni Date: Mon, 20 May 2024 11:11:14 -0400 Subject: [PATCH] fix(write-back): Ensure directory permissions are secure --- action/action.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action/action.go b/action/action.go index 4811983..34c9820 100644 --- a/action/action.go +++ b/action/action.go @@ -427,7 +427,7 @@ func (a *Action) WriteBack() error { // nil if the directory already exists. Returns an error if something // goes wrong. dir, _ := filepath.Split(path) - if err := os.MkdirAll(dir, 0755); err != nil { + if err := os.MkdirAll(dir, 0750); err != nil { return fmt.Errorf("create directory %s: %w", dir, err) }