fix(ci): work around read-only $HOME/.ssh and non-writable CARGO_HOME #3
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ci-runner-permissions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every CI run on this repo has been failing silently since it was created — checked the real Forgejo action logs (via SSH to the forge host, not just local testing) and found two real infra issues:
/home/runner/.ssh/known_hosts: Read-only file system, thenfailed to create directory /usr/local/cargo/git/db/...: Permission denied— the container's $HOME/.ssh is read-only and the default CARGO_HOME isn't writable.Fix: stop writing into $HOME/.ssh at all. Use
GIT_SSH_COMMANDwithUserKnownHostsFilepointed at /tmp (always writable) andStrictHostKeyChecking=accept-new. RedirectCARGO_HOMEto /tmp on the linux job too.