From c6214767f0d62af01fbbf72080fa99ecbd91570c Mon Sep 17 00:00:00 2001 From: Devashish Gaikwad Date: Thu, 8 Oct 2026 18:52:21 +0200 Subject: [PATCH] fix: modify worktree access rights --- st2common/st2common/runners/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/st2common/st2common/runners/base.py b/st2common/st2common/runners/base.py index c0390f5563..50170daad3 100644 --- a/st2common/st2common/runners/base.py +++ b/st2common/st2common/runners/base.py @@ -382,8 +382,8 @@ def create_git_worktree(self, content_version): else: LOG.debug('Git worktree created in "%s"' % (worktree_path), extra=extra) - # Make sure system / action runner user can access that directory - args = ["chmod", "777", worktree_path] + # Make sure only system / action runner user can access that directory + args = ["chmod", "750", worktree_path] cmd = list2cmdline(args) run_command(cmd=cmd, shell=True)