fix(gh-action): install openssh-client in Docker image#1389
fix(gh-action): install openssh-client in Docker image#1389codejedi365 merged 2 commits intomasterfrom
Conversation
5d79678 to
ccc0a26
Compare
524ecba to
68eed57
Compare
|
@copilot can you add a github action test to |
Added test case in commit f94a081. The test generates an Ed25519 SSH key pair and validates that ssh-agent and ssh-add execute successfully when INPUT_SSH_PUBLIC_SIGNING_KEY and INPUT_SSH_PRIVATE_SIGNING_KEY are provided. The test verifies SSH setup messages, agent startup, key addition, and command execution. |
Add test to verify SSH signing key configuration in the GitHub Action. The test generates an SSH key pair and validates that ssh-agent and ssh-add commands execute successfully when SSH signing keys are provided. Co-authored-by: codejedi365 <17354856+codejedi365@users.noreply.github.com>
…m action environment Install openssh-client in the slim container image Resolves: #1376
af3a29a to
152112a
Compare
🎉 This PR has been published as part of v10.5.3 🎉You can find more information about this release on the GitHub Releases page. |
Purpose
Fixes #1376. The GitHub Action Docker image lacks SSH client tools required for SSH key signing functionality.
Rationale
The action script (
src/gh_action/action.sh:159-160) invokesssh-agentandssh-addfor SSH key signing whenssh_public_signing_keyandssh_private_signing_keyinputs are provided. These binaries are not present inpython:3.14-slim-trixiebase image. The switch to the slim variant removed openssh-client which was implicitly included in the standard base image.How did you test?
Built test Docker image from
python:3.14-slim-trixiewithopenssh-clientinstalled. Verifiedssh-agentandssh-addbinaries are available at/usr/bin/ssh-agentand/usr/bin/ssh-add. Confirmed other action script dependencies (stat, sha256sum, chmod, mkdir, chown) remain available.Added automated test case
test_version_ssh_signing.shintests/gh_action/suite/that:INPUT_SSH_PUBLIC_SIGNING_KEYandINPUT_SSH_PRIVATE_SIGNING_KEYenvironment variablesssh-agentstarts successfully (checks for "Agent pid" message)ssh-addadds the key successfully (checks for "Identity added" message)How to Verify
ssh_public_signing_keyandssh_private_signing_keyinputsssh-agentorssh-addbash tests/gh_action/run.shto verify the new test passesPR Completion Checklist
Reviewed & followed the Contributor Guidelines
Changes Implemented & Validation pipeline succeeds
Commits follow the Conventional Commits standard
and are separated into the proper commit type and scope (recommended order: test, build, feat/fix, docs)
Appropriate Unit tests added/updated
Appropriate End-to-End tests added/updated
Appropriate Documentation added/updated and syntax validated for sphinx build (see Contributor Guidelines)
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.