{"id":31945642,"url":"https://github.com/jimcronqvist/action-ssh","last_synced_at":"2025-10-14T10:58:32.312Z","repository":{"id":65158042,"uuid":"211625815","full_name":"JimCronqvist/action-ssh","owner":"JimCronqvist","description":"GitHub Action for executing SSH commands on remote servers","archived":false,"fork":false,"pushed_at":"2023-03-24T10:21:54.000Z","size":14,"stargazers_count":73,"open_issues_count":0,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T10:37:59.372Z","etag":null,"topics":["github-action","github-actions","github-actions-docker","ssh","ssh-client"],"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/JimCronqvist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-29T07:55:18.000Z","updated_at":"2024-10-15T12:32:18.000Z","dependencies_parsed_at":"2024-06-18T15:19:02.236Z","dependency_job_id":"df273345-4e67-44d7-8b20-d66241b157be","html_url":"https://github.com/JimCronqvist/action-ssh","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"d95a7435b565a2fedb9bf4100cdeb3342aa3cf16"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":"actions/container-action","purl":"pkg:github/JimCronqvist/action-ssh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimCronqvist%2Faction-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimCronqvist%2Faction-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimCronqvist%2Faction-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimCronqvist%2Faction-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JimCronqvist","download_url":"https://codeload.github.com/JimCronqvist/action-ssh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimCronqvist%2Faction-ssh/sbom","scorecard":{"id":72755,"data":{"date":"2025-08-11","repo":{"name":"github.com/JimCronqvist/action-ssh","commit":"d95a7435b565a2fedb9bf4100cdeb3342aa3cf16"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating alpine:latest to alpine:latest@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T04:11:38.104Z","repository_id":65158042,"created_at":"2025-08-15T04:11:38.104Z","updated_at":"2025-08-15T04:11:38.104Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018780,"owners_count":26086454,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["github-action","github-actions","github-actions-docker","ssh","ssh-client"],"created_at":"2025-10-14T10:57:46.952Z","updated_at":"2025-10-14T10:58:32.307Z","avatar_url":"https://github.com/JimCronqvist.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action - SSH Execute Commands\n\nGitHub Action (yml) to execute SSH commands on remote server(s).\n\n**Supports:** \n- Multiple hosts\n- Environment variables\n- Multiple commands\n- Private key authentication\n\n*Password authentication is generally seen as unsafe and is therefore not supported.*\n\n## Example usage\n\n**Basic Example** \n```yml\n- name: Execute SSH commmands on remote server\n  uses: JimCronqvist/action-ssh@master\n  with:\n    hosts: 'user@domain.com'\n    privateKey: ${{ secrets.PRIVATE_KEY }}\n    command: ls -lah\n```\n\n**Advanced Example - envs, multiple hosts, multiple commands**\n```yml\n- name: Execute SSH commmands on remote server\n  uses: JimCronqvist/action-ssh@master\n  env:\n    NAME: \"Root\"\n  with:\n    hosts: 'user@domain.com user@domain2.com:2222'\n    privateKey: ${{ secrets.PRIVATE_KEY }}\n    debug: false\n    command: |\n      ls -lah\n      echo \"I am $NAME\"\n```\n\n*Create your secrets here: `https://github.com/USERNAME/REPO/settings/secrets`*\n\n## Inputs\n\n**`command`**:\nCommand(s) to execute on the remote server.\n\n**`hosts`**: \nHostname or IP address of the remote server(s). Separate multiple servers with a blank space.\nExample: \"user@mydomain.com:22 user@otherdomain.com:2222\"\n\n**`privateKey`**: The private key (id_rsa) content for authenticating to the SSH server(s). \nRecommended to store it as a GitHub Secret.\n\n**`debug`**: Used to view all environment variables in the logs, please note that this could expose sensitive data. Default as `false`\n\n## Outputs\n\nThe output from the commands ran on the remote server(s).\n\n## External links\n\nTo set up ssh keys, please see the following guide:\n*https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1804*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimcronqvist%2Faction-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimcronqvist%2Faction-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimcronqvist%2Faction-ssh/lists"}