From 62cdb4d7aa13570acfe487b30d6bcd5e795c027c Mon Sep 17 00:00:00 2001 From: Rin Date: Sun, 5 May 2024 21:31:50 +0800 Subject: [PATCH] lgtm --- dist/index.js | 1 + index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index ec7fbc1..1794b3e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31084,6 +31084,7 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey) qemu_wrapper(qemu_executable, qemu_args, (qemu_process) => { let runScript = core.getInput('run'); fs.writeFileSync('/tmp/run.sh', runScript); + spawnSync('scp', ['-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '/tmp/run.sh', 'root@localhost:/tmp/run.sh']); let ssh = spawn('ssh', ['-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), 'root@localhost'],); ssh.stdout.pipe(process.stdout); ssh.stderr.pipe(process.stderr); diff --git a/index.js b/index.js index 51e3082..640d17e 100644 --- a/index.js +++ b/index.js @@ -194,6 +194,7 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey) qemu_wrapper(qemu_executable, qemu_args, (qemu_process) => { let runScript = core.getInput('run'); fs.writeFileSync('/tmp/run.sh', runScript); + spawnSync('scp', ['-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '/tmp/run.sh', 'root@localhost:/tmp/run.sh']); let ssh = spawn('ssh', ['-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), 'root@localhost'],); ssh.stdout.pipe(process.stdout); ssh.stderr.pipe(process.stderr);