I'm trying to run a simple GitHub Action on my self-hosted runner (Windows 10), but I'm getting the error Host key verification failed. [error]fatal: Could not read from remote repository.
Here's the code for the GitHub Action:
name: GitHub Actions Demo
on:
push:
branches: ["feature"]
jobs:
build:
runs-on: self-hosted
steps:
- name: Check out repository code
uses: actions/checkout@v3
I've verified that the self-hosted runner is properly configured and connected to the repository, and I can manually clone and fetch the repository on the same machine without any issues. I've also tried running the ssh-keyscan command and adding the resulting host key to the known_hosts file, but that doesn't solve the problem.