diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 74c4ab6..df30ffa 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -20,6 +20,11 @@ on: env: CARGO_TERM_COLOR: always + # Cargo fetches the private VoelinProtocol dependency with the system git and + # ssh (docs/ci.md, "VoelinProtocol access"). The checks action exports this + # too; set here as well, it does not depend on the runner handing a composite + # action's GITHUB_ENV on to the later steps. + CARGO_NET_GIT_FETCH_WITH_CLI: "true" jobs: linux: diff --git a/docs/ci.md b/docs/ci.md index ad35dca..248e525 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -131,7 +131,8 @@ What is set up: line to `~/.ssh/known_hosts`, writes a `Host git.faumaray.com` block to `~/.ssh/config` (`User gitea`, that `IdentityFile`, `IdentitiesOnly yes`, `StrictHostKeyChecking yes`) and exports `CARGO_NET_GIT_FETCH_WITH_CLI=true` - and `GIT_SSH_COMMAND` for the rest of the job. It prints only the key's + and `GIT_SSH_COMMAND` for the rest of the job (`ci.yml` sets the first one + in its own `env` as well). It prints only the key's public fingerprint; the key is never echoed. After the system packages a second step runs `git ls-remote` on VoelinProtocol, so a wrong key or host key fails there, with the reason, and not inside a cargo command. The key