Check each OpenSSH tool on its own and stop only an agent this job started
CI / Linux checks (pull_request) Failing after 21m18s
CI / Linux checks (pull_request) Failing after 21m18s
command -v with two names returns 0 when one resolves, so the guards were weaker than they read. The release workflow's final step killed whatever agent SSH_AGENT_PID named; it now needs the marker the start step writes after it succeeded. Two documentation lines re-wrapped (the review's three minors). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
e5956e40e9
commit
b8ba43f0c9
4 files changed
+17
-9
No files matched your search
@@ -26,10 +26,12 @@ runs:
|
||||
echo "::error::The VoelinProtocol deploy key is empty. Set the repository secret VOELIN_PROTOCOL_DEPLOY_KEY to the private key of the read-only deploy key on Voelin/VoelinProtocol (docs/ci.md, VoelinProtocol access). Pull requests from forks get no secrets." >&2
|
||||
exit 1
|
||||
fi
|
||||
command -v ssh ssh-keygen > /dev/null || {
|
||||
echo "::error::The job image needs the OpenSSH client (ssh, ssh-keygen)." >&2
|
||||
exit 1
|
||||
}
|
||||
for tool in ssh ssh-keygen; do
|
||||
command -v "$tool" > /dev/null || {
|
||||
echo "::error::The job image needs the OpenSSH client: $tool is missing." >&2
|
||||
exit 1
|
||||
}
|
||||
done
|
||||
ssh_dir="$HOME/.ssh"
|
||||
key_file="$ssh_dir/voelin_protocol"
|
||||
mkdir -p "$ssh_dir"
|
||||
|
||||
Reference in new issue
Block a user