You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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>