diff --git a/src/publish-crates-debian.ts b/src/publish-crates-debian.ts index f677eab..1f51665 100644 --- a/src/publish-crates-debian.ts +++ b/src/publish-crates-debian.ts @@ -34,7 +34,7 @@ export function setup(): Input { const sshPrivateKey = core.getInput("ssh-private-key", { required: true }); const sshPassphrase = core.getInput("ssh-passphrase", { required: true }); const installationTest = core.getBooleanInput("installation-test", { required: true }); - const repo = core.getInput("repo", {required: true}); + const repo = core.getInput("repo", { required: true }); return { liveRun, diff --git a/src/ssh.ts b/src/ssh.ts index 0b994a5..76f558e 100644 --- a/src/ssh.ts +++ b/src/ssh.ts @@ -7,11 +7,7 @@ function setupAgent(): NodeJS.ProcessEnv { return Object.fromEntries([...commands.matchAll(/([A-Z_]+)=([^;]+);/g)].map(m => [m[1], m[2]])); } -export async function withIdentity( - privateKey: string, - passphrase: string, - fn: (env: NodeJS.ProcessEnv) => void, -) { +export async function withIdentity(privateKey: string, passphrase: string, fn: (env: NodeJS.ProcessEnv) => void) { const env = setupAgent(); const passphrasePath = "./.ssh_askpass"; await fs.writeFile(passphrasePath, `echo '${passphrase}'`, { mode: fs.constants.S_IRWXU });