From 562c00546e87cd98592ff148e5c53b875fbace51 Mon Sep 17 00:00:00 2001 From: nick <59822256+Archasion@users.noreply.github.com> Date: Sat, 9 May 2026 19:30:38 +0100 Subject: [PATCH] ci: pass SSH_PORT through to appleboy/ssh-action The host listens on a non-default port; without `port:` the action defaults to 22 and the SSH connection fails before the deploy script ever runs. Sourcing the value from a new SSH_PORT secret keeps the port off the workflow file (and out of git history) and falls through to 22 when the secret is unset. --- .github/workflows/cd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b5d0876..ce0e0f0 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -21,6 +21,7 @@ jobs: uses: appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3 with: host: ${{ secrets.SSH_HOST }} + port: ${{ secrets.SSH_PORT }} username: ${{ secrets.SSH_USER }} key: ${{ secrets.SSH_KEY }} script: |