SSH for GitHub Actions is a GitHub Action designed to run remote SSH commands directly from CI/CD workflows. It helps teams automate deployments, maintenance tasks, server checks, and post-build operations without leaving GitHub Actions. The project is built with Go and uses drone-ssh, giving it a practical foundation for flexible SSH execution. It supports common connection methods, including password-based access and private key authentication. It can run commands on one host or multiple hosts, including setups that require different ports or synchronous execution. It also supports proxy and jump host workflows, making it useful for more complex infrastructure environments. Developers can pass environment variables, run scripts from files, capture command output, and add security checks such as host fingerprint verification.
Features
- Password and private key authentication
- Remote command execution from GitHub Actions
- Multiple host support with optional synchronous execution
- Proxy and jump host connection support
- Environment variable passing to remote scripts
- Command output capture for later workflow steps