diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml index cb7f072..e0e4d45 100644 --- a/.gitea/workflows/renovate.yml +++ b/.gitea/workflows/renovate.yml @@ -15,10 +15,20 @@ jobs: - name: Git Setup run: | mkdir -p ~/.ssh - echo 'Host gitea.akshun-lab.cc' >> ~/.ssh/config - echo ' User git' >> ~/.ssh/config - echo ' Port 222' >> ~/.ssh/config - cat ~/.ssh/config + { + echo "Host gitea.akshun-lab.cc" + echo " HostName gitea.akshun-lab.cc" + echo " User git" + echo " Port 222" + echo " StrictHostKeyChecking yes" + } >> ~/.ssh/config + chmod 600 ~/.ssh/config + + - name: SSH known_hosts setup + run: | + mkdir -p ~/.ssh + ssh-keyscan -p 222 gitea.akshun-lab.cc >> ~/.ssh/known_hosts + chmod 600 ~/.ssh/known_hosts - name: Checkout repository uses: actions/checkout@v5