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:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user