A collection of reusable GitHub Actions maintained by JetRails.
Opens a background SSH tunnel to a remote host using local port forwarding.
| Input | Description | Required | Default |
|---|---|---|---|
ssh-user |
SSH user | Yes | - |
ssh-host |
SSH host | Yes | - |
ssh-private-key |
SSH private key for authentication | Yes | - |
source-port |
Port to bind to locally | Yes | - |
target-port |
Port to forward to through the tunnel | Yes | - |
target-host |
Host to forward to through the tunnel | No | localhost |
- uses: jetrails/github-actions/ssh-tunnel@v1
with:
ssh-user: ${{ secrets.SSH_USER }}
ssh-host: ${{ secrets.SSH_HOST }}
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
source-port: "3306"
target-port: "3306"
target-host: database.internal