Skip to content

Fix deploy SSH connectivity in Actions by forcing IPv4 - #6

Merged
adamsimms merged 1 commit into
mainfrom
adamsimms-fix-actions-run-28962655760
Jul 8, 2026
Merged

Fix deploy SSH connectivity in Actions by forcing IPv4#6
adamsimms merged 1 commit into
mainfrom
adamsimms-fix-actions-run-28962655760

Conversation

@adamsimms

Copy link
Copy Markdown
Owner

Summary\n- fix deploy workflow SSH connectivity failures in GitHub Actions\n- force IPv4 for all SSH-based deploy commands (, , and rsync remote shell)\n\n## Root cause\nThe deploy job failed in Test SSH connection with Network is unreachable because SSH address-family resolution could select an unroutable IPv6 path from the runner environment.\n\n## Validation\n- composer install --no-interaction --prefer-dist\n- vendor/bin/phpunit (9 tests, 26 assertions)

GitHub Actions deploy run 28962655760 failed in the SSH connectivity check with 'Network is unreachable' on port 22. Force IPv4 in ssh-keyscan and all SSH invocations (including rsync transport) to avoid unroutable address-family resolution on hosted runners.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 8, 2026 17:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the deploy GitHub Actions workflow to avoid SSH connectivity failures caused by runners attempting unreachable IPv6 routes, by explicitly forcing IPv4 for SSH-related operations.

Changes:

  • Force IPv4 for ssh-keyscan when populating known_hosts.
  • Force IPv4 for interactive SSH connectivity test (ssh -4).
  • Force IPv4 for rsync-over-SSH by adding -4 to the remote shell command.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adamsimms
adamsimms merged commit 785f550 into main Jul 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants