diff --git a/src/Misc/containerEngineHandlers/kubectlHandler/src/kubectlHandler.ts b/src/Misc/containerEngineHandlers/kubectlHandler/src/kubectlHandler.ts index b155a99f0..601fc3f66 100644 --- a/src/Misc/containerEngineHandlers/kubectlHandler/src/kubectlHandler.ts +++ b/src/Misc/containerEngineHandlers/kubectlHandler/src/kubectlHandler.ts @@ -126,6 +126,13 @@ async function run(): Promise { // -e RUNNER_TEMP -e RUNNER_WORKSPACE // eccdf520697a035599d6e8c8dc801f004fdd3797cdce88f590aba3669a88d9bc sh -e /__w/_temp/d3b30383-719c-4e76-a16f-8f85443352be.sh + const cpTempArgs = [ + 'cp', + '/actions-runner/_work/_temp', + 'job-container:/__w/_temp' + ] + await exec.exec('kubectl', cpTempArgs) + const execArgs = ['exec'] execArgs.push(execInput.jobContainer.containerId) execArgs.push('-i') diff --git a/src/Misc/layoutbin/kubectlHandler/index.js b/src/Misc/layoutbin/kubectlHandler/index.js index e2a058df3..a23fff95b 100644 --- a/src/Misc/layoutbin/kubectlHandler/index.js +++ b/src/Misc/layoutbin/kubectlHandler/index.js @@ -3088,6 +3088,12 @@ function run() { // -e RUNNER_OS -e RUNNER_NAME -e RUNNER_TOOL_CACHE // -e RUNNER_TEMP -e RUNNER_WORKSPACE // eccdf520697a035599d6e8c8dc801f004fdd3797cdce88f590aba3669a88d9bc sh -e /__w/_temp/d3b30383-719c-4e76-a16f-8f85443352be.sh + const cpTempArgs = [ + 'cp', + '/actions-runner/_work/_temp', + 'job-container:/__w/_temp' + ]; + yield exec.exec('kubectl', cpTempArgs); const execArgs = ['exec']; execArgs.push(execInput.jobContainer.containerId); execArgs.push('-i');