From 456ca9478666d0224dce7d54bad2d204e34ca205 Mon Sep 17 00:00:00 2001 From: GMaysa Date: Thu, 2 Jul 2026 17:39:38 +0800 Subject: [PATCH] ci: update SSH configuration in deploy_patch.yml to use user-specific config and improve security --- .gitea/workflows/deploy_patch.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy_patch.yml b/.gitea/workflows/deploy_patch.yml index ceb93d4..e7a990f 100644 --- a/.gitea/workflows/deploy_patch.yml +++ b/.gitea/workflows/deploy_patch.yml @@ -17,10 +17,17 @@ jobs: name: Build Patch runs-on: ubuntu-latest timeout-minutes: 45 + env: + ACTIONS_STEP_DEBUG: true steps: - name: Setup SSH config for Gitea run: | - echo -e "Host git.klud.top\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" >> /etc/ssh/ssh_config + mkdir -p ~/.ssh + echo -e "Host git.klud.top\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" > ~/.ssh/config + chmod 600 ~/.ssh/config + + git config --global url."ssh://git@100.79.174.108:222/".insteadOf "git@git.klud.top:" + git config --global url."ssh://git@100.79.174.108:222/".insteadOf "https://git.klud.top/" - name: Checkout repository uses: actions/checkout@v4