diff --git a/dist/index.js b/dist/index.js index 0e2d358..4954a46 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29961,7 +29961,7 @@ function run() { yield (0, utils_1.setGitConfig)(); // git config --global url.https://${{ secrets.MY_PAT }}@github.com/.insteadOf https://github.com/ // await exec('git', ['config', '--global', `url.https://${token}@github.com/.insteadOf`, 'https://github.com/']) - (0, utils_1.sshConfig)(token); + yield (0, utils_1.sshConfig)(token); (0, trigger_1.default)({ owner, repo, @@ -30365,7 +30365,7 @@ function sshConfig(token) { return __awaiter(this, void 0, void 0, function* () { yield (0, exec_1.exec)(`ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts`); yield (0, exec_1.exec)(`echo "${token}" > ~/.ssh/id_rsa`); - // await exec(`chmod 600 ~/.ssh/id_rsa`) + yield (0, exec_1.exec)(`chmod 600 ~/.ssh/id_rsa`); }); } diff --git a/src/index.ts b/src/index.ts index e6b069c..8c52871 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,7 +33,7 @@ export async function run(): Promise { await setGitConfig() // git config --global url.https://${{ secrets.MY_PAT }}@github.com/.insteadOf https://github.com/ // await exec('git', ['config', '--global', `url.https://${token}@github.com/.insteadOf`, 'https://github.com/']) - sshConfig(token) + await sshConfig(token) useTrigger({ owner, diff --git a/src/utils.ts b/src/utils.ts index b70b912..a931f91 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -97,5 +97,5 @@ export async function gitPush(repo: string, branch: string) { export async function sshConfig(token: string) { await exec(`ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts`) await exec(`echo "${token}" > ~/.ssh/id_rsa`) - // await exec(`chmod 600 ~/.ssh/id_rsa`) + await exec(`chmod 600 ~/.ssh/id_rsa`) }