Skip to content

Commit caba6ba

Browse files
committed
fix: make chown call safer in start-runner script
1 parent cd191a3 commit caba6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/runners/templates/start-runner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ if [[ "$run_as" == "root" ]]; then
190190
export RUNNER_ALLOW_RUNASROOT=1
191191
fi
192192

193-
chown -R $run_as .
193+
chown -R $run_as /opt/actions-runner
194194

195195
info_arch=$(uname -p)
196196
info_os=$( ( lsb_release -ds || cat /etc/*release || uname -om ) 2>/dev/null | head -n1 | cut -d "=" -f2- | tr -d '"')

0 commit comments

Comments
 (0)