Add SSH known_hosts setup for CI runner

- Run ssh-keyscan before checkout to add gitea.kindred.internal host key
- Fixes 'KnownHostsCommand failed' error during SSH authentication
This commit is contained in:
forbes
2026-01-27 14:33:10 -06:00
parent c411f11e8b
commit f4d4eecf92
2 changed files with 14 additions and 0 deletions

View File

@@ -28,6 +28,13 @@ jobs:
fi
node --version
- name: Setup SSH known hosts
shell: bash
run: |
mkdir -p ~/.ssh
ssh-keyscan -H gitea.kindred.internal >> ~/.ssh/known_hosts 2>/dev/null
chmod 600 ~/.ssh/known_hosts
- name: Checkout repository
uses: https://code.forgejo.org/actions/checkout@v4
with:

View File

@@ -36,6 +36,13 @@ jobs:
fi
node --version
- name: Setup SSH known hosts
shell: bash
run: |
mkdir -p ~/.ssh
ssh-keyscan -H gitea.kindred.internal >> ~/.ssh/known_hosts 2>/dev/null
chmod 600 ~/.ssh/known_hosts
- name: Checkout repository
uses: https://code.forgejo.org/actions/checkout@v4
with: