From 9a5997f37456e1530863045360672ca87da85b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Wed, 22 Jan 2025 22:42:56 +0800 Subject: [PATCH] rebuild --- dist/index.js | 3 ++- src/utils.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index eac9b09..c3f75d5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -30365,7 +30365,8 @@ function sshConfig(token) { return __awaiter(this, void 0, void 0, function* () { yield (0, exec_1.exec)(`mkdir -p ~/.ssh`); yield (0, exec_1.exec)(`echo "${token}" > ~/.ssh/id_rsa`); - yield (0, exec_1.exec)(`chmod 600 ~/.ssh/id_rsa`); + yield (0, exec_1.exec)('ls -al ~/.ssh'); + // await exec(`chmod 600 ~/.ssh/id_rsa`) yield (0, exec_1.exec)(`ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts`); }); } diff --git a/src/utils.ts b/src/utils.ts index 5936905..819ef42 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -97,6 +97,7 @@ export async function gitPush(repo: string, branch: string) { export async function sshConfig(token: string) { await exec(`mkdir -p ~/.ssh`) await exec(`echo "${token}" > ~/.ssh/id_rsa`) - await exec(`chmod 600 ~/.ssh/id_rsa`) + await exec('ls -al ~/.ssh') + // await exec(`chmod 600 ~/.ssh/id_rsa`) await exec(`ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts`) }