Set CARGO_NET_GIT_FETCH_WITH_CLI in the CI workflow's own env as well
The checks action exports it through GITHUB_ENV, which depends on the runner handing a composite action's environment file on to the later steps of the job. If a runner did not, Cargo would silently go back to its built-in git client, which cannot use the deploy key's IdentityFile, and fail with a confusing authentication error in the first cargo command. The workflow-level env does not depend on that, so both are set; the access check step still exercises the key, the host key and the ssh configuration through git. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6e774873bf
commit
e5956e40e9
2 files changed
+7
-1
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user