File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ export async function createJobPod(
102102 image :
103103 process . env . ACTIONS_RUNNER_IMAGE ||
104104 'ghcr.io/actions/actions-runner:latest' ,
105- command : [ 'sh' , '-c' ,
105+ command : [
106+ 'sh' ,
107+ '-c' ,
106108 `mkdir -p /mnt/externals && \\
107109 mkdir -p /mnt/work && \\
108110 mkdir -p /mnt/github && \\
@@ -375,10 +377,12 @@ export async function execCpToPod(
375377 const exec = new k8s . Exec ( kc )
376378 // Use tar to extract with --no-same-owner to avoid ownership issues.
377379 // Then use find to fix permissions. The -m flag helps but we also need to fix permissions after.
378- const command = [ 'sh' , '-c' ,
380+ const command = [
381+ 'sh' ,
382+ '-c' ,
379383 `tar xf - --no-same-owner -C ${ shlex . quote ( containerPath ) } 2>/dev/null; ` +
380- `find ${ shlex . quote ( containerPath ) } -type f -exec chmod u+rw {} \\; 2>/dev/null; ` +
381- `find ${ shlex . quote ( containerPath ) } -type d -exec chmod u+rwx {} \\; 2>/dev/null`
384+ `find ${ shlex . quote ( containerPath ) } -type f -exec chmod u+rw {} \\; 2>/dev/null; ` +
385+ `find ${ shlex . quote ( containerPath ) } -type d -exec chmod u+rwx {} \\; 2>/dev/null`
382386 ]
383387 const readStream = tar . pack ( runnerPath )
384388 const errStream = new WritableStreamBuffer ( )
You can’t perform that action at this time.
0 commit comments