Skip to content

0.0.2

Latest

Choose a tag to compare

@sandipndev sandipndev released this 20 Apr 21:30
68fd54d
fix: trust new ssh hosts on first connection (#42)

On a fresh runner, the user's known_hosts doesn't contain the git host
yet, so `git clone` fails with "Host key verification failed" before
the action can claim the lock. Setting GIT_SSH_COMMAND with
StrictHostKeyChecking=accept-new tells ssh to auto-accept a new host
key (and pin it thereafter), which removes the need for callers to
pre-seed known_hosts. Works for any git_uri host — github.com,
gitlab, self-hosted — without URI parsing.

Symptom seen in https://github.com/sandipndev/build/actions/runs/24690001595

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>