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)