release and the images: the agent only for cargo fetch, stopped after the builds, never on a runner that may print the key
release.yml checks the runner version before any step names the secret (same gate as ci.yml), starts the ssh-agent only on the positive flag, and stops it in an always() step right after the last build, so the artifact upload and the release draft have neither the key nor the socket. The four Dockerfiles (linux, windows, android, the gateway image) give the agent to `RUN cargo fetch --locked` only; the build after it has no ssh mount and is offline (--offline, and CARGO_NET_OFFLINE for the Android Gradle task, which starts cargo-ndk). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cfde421af4
commit
91dce84b36
6 files changed
+119
-23
No files matched your search
@@ -10,7 +10,9 @@
|
||||
# The workspace depends on the private VoelinProtocol repository, which the
|
||||
# build fetches over SSH with your ssh-agent (`docker build --ssh default`):
|
||||
# the agent must hold a key that can read it (docs/building.md, "Depending on
|
||||
# VoelinProtocol"). The key stays in the agent, never in the image.
|
||||
# VoelinProtocol"). The key stays in the agent, never in the image, and only the
|
||||
# Dockerfile's `cargo fetch` step is given the agent: the build after it is
|
||||
# offline.
|
||||
#
|
||||
# Behind an HTTPS proxy, HTTPS_PROXY/HTTP_PROXY/NO_PROXY are passed on to the
|
||||
# build; a proxy on this machine's loopback is reached with host networking.
|
||||
|
||||
Reference in new issue
Block a user