{"id":21396786,"url":"https://github.com/favware/ssh-remote-action","last_synced_at":"2025-09-12T20:43:39.244Z","repository":{"id":211502015,"uuid":"729330257","full_name":"favware/ssh-remote-action","owner":"favware","description":"A GitHub action for executing a SSH command on a remote server","archived":false,"fork":false,"pushed_at":"2024-01-15T23:39:28.000Z","size":23,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T00:23:37.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/favware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["favna"],"patreon":"favna","open_collective":null,"ko_fi":"favna","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://donate.favware.tech/paypal"}},"created_at":"2023-12-08T23:16:31.000Z","updated_at":"2025-04-12T00:19:31.000Z","dependencies_parsed_at":"2023-12-09T00:52:57.254Z","dependency_job_id":"7d910a29-7336-443f-a26e-a0018720c3c2","html_url":"https://github.com/favware/ssh-remote-action","commit_stats":null,"previous_names":["favware/ssh-remote-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/favware/ssh-remote-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/favware%2Fssh-remote-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/favware%2Fssh-remote-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/favware%2Fssh-remote-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/favware%2Fssh-remote-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/favware","download_url":"https://codeload.github.com/favware/ssh-remote-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/favware%2Fssh-remote-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262819275,"owners_count":23369443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T14:29:16.411Z","updated_at":"2025-06-30T17:33:28.884Z","avatar_url":"https://github.com/favware.png","language":"Shell","funding_links":["https://github.com/sponsors/favna","https://patreon.com/favna","https://ko-fi.com/favna","https://donate.favware.tech/paypal"],"categories":[],"sub_categories":[],"readme":"# SSH Remote Action\n\nSSH Remote Action (ssh-remote-action) is a GitHub action for executing a SSH\ncommand on a remote server. An example use case of this action is deploying your\napplication on your remote server after publishing a new release through another\nGitHub workflow job.\n\n## Usage\n\n`.github/workflows/continuous-deployment.yml`\n\n```yml\non:\n  release:\n    types: [published]\n\njobs:\n  publish:\n    name: Publish application\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Project\n        uses: actions/checkout@v4\n      # Do whatever you need to do to publish your application\n\n  deploy:\n    name: Deploy on remote server\n    runs-on: ubuntu-latest\n    needs: publish\n    steps:\n      - name: Deploy on remote server\n        uses: favware/ssh-remote-action@v1\n        with:\n          host: ${{ secrets.SSH_HOST }}\n          port: ${{ secrets.SSH_PORT }}\n          key: ${{ secrets.SSH_KEY }}\n          passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }}\n          username: ${{ secrets.SSH_USERNAME }}\n          command: ${{ secrets.SSH_COMMAND }}\n```\n\n### Ensuring that the output from the command is not printed to the logs\n\nYou may not want the output of the SSH logs to be printed to the GitHub action\nlogs. To achieve this you can provide the `silent` input with value of `true`.\nThis will take your `command` and transform it to:\n\n```sh\nsh -c '${{ inputs.command }}' \u003e /dev/null 2\u003e\u00261\n```\n\nAlternatively you can also provide this directly to your SSH command, in that\ncase make sure you do NOT set `silent` to true. For example if we want to call a\nscript called `deploy.sh` the syntax is:\n\n```sh\nsh -c '/path/to/deploy.sh' \u003e /dev/null 2\u003e\u00261\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffavware%2Fssh-remote-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffavware%2Fssh-remote-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffavware%2Fssh-remote-action/lists"}