From 3061bc4d1ba9d8afaac8174bcdb6e298aeb14895 Mon Sep 17 00:00:00 2001 From: Ketan Patel Date: Fri, 19 Jun 2026 18:59:08 -0400 Subject: [PATCH] Trust Gitea SSH host in workflow --- .gitea/workflows/build-and-deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index b2ba890..9ebe51b 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -22,6 +22,10 @@ jobs: shell: bash run: | git init . + mkdir -p ~/.ssh + chmod 700 ~/.ssh + ssh-keyscan -p 2222 git.k2patel.in >> ~/.ssh/known_hosts + chmod 600 ~/.ssh/known_hosts git remote add origin "ssh://git@git.k2patel.in:2222/k2patel/apcupsd-client.git" git -c protocol.version=2 fetch --no-tags --prune --depth=1 origin +refs/heads/main:refs/remotes/origin/main git checkout --force refs/remotes/origin/main