{"id":21121205,"url":"https://github.com/nekiro/ssh-job","last_synced_at":"2025-09-13T06:47:20.470Z","repository":{"id":182154460,"uuid":"667947909","full_name":"nekiro/ssh-job","owner":"nekiro","description":"Github Action for ssh programmatic use","archived":false,"fork":false,"pushed_at":"2025-08-12T11:29:23.000Z","size":1644,"stargazers_count":10,"open_issues_count":5,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T07:24:12.685Z","etag":null,"topics":["action","client","github","githubaction","ssh","ssh-client"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/ssh-job","language":"TypeScript","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/nekiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"nekiro","ko_fi":"nekiro"}},"created_at":"2023-07-18T16:57:49.000Z","updated_at":"2025-08-12T11:29:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e529f85-46e7-440d-9dde-ffd416590041","html_url":"https://github.com/nekiro/ssh-job","commit_stats":null,"previous_names":["nekiro/ssh-job"],"tags_count":7,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/nekiro/ssh-job","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekiro%2Fssh-job","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekiro%2Fssh-job/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekiro%2Fssh-job/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekiro%2Fssh-job/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nekiro","download_url":"https://codeload.github.com/nekiro/ssh-job/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekiro%2Fssh-job/sbom","scorecard":{"id":678983,"data":{"date":"2025-08-11","repo":{"name":"github.com/nekiro/ssh-job","commit":"b14ccb5ec5ec89b368d4f961f5fc1a5602381d11"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/24 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":"Maintained","score":3,"reason":"3 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":7,"reason":"binaries present in source code","details":["Warn: binary detected: dist/build/Release/cpufeatures.node:1","Warn: binary detected: dist/lib/protocol/crypto/build/Release/sshcrypto.node:1","Warn: binary detected: dist/pagent.exe:1"],"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/check-dist.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/test-build.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/nekiro/ssh-job/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/nekiro/ssh-job/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/nekiro/ssh-job/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/nekiro/ssh-job/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/nekiro/ssh-job/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/nekiro/ssh-job/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/nekiro/ssh-job/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-build.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/nekiro/ssh-job/test-build.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/test-build.yml:15","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   2 npmCommand 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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 4 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"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T22:29:21.548Z","repository_id":182154460,"created_at":"2025-08-21T22:29:21.548Z","updated_at":"2025-08-21T22:29:21.548Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274930284,"owners_count":25375712,"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-09-13T02:00:10.085Z","response_time":70,"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":["action","client","github","githubaction","ssh","ssh-client"],"created_at":"2024-11-20T03:26:05.860Z","updated_at":"2025-09-13T06:47:20.452Z","avatar_url":"https://github.com/nekiro.png","language":"TypeScript","funding_links":["https://github.com/sponsors/nekiro","https://ko-fi.com/nekiro"],"categories":[],"sub_categories":[],"readme":"[![test-build](https://github.com/nekiro/ssh-job/actions/workflows/test-build.yml/badge.svg)](https://github.com/nekiro/ssh-job/actions/workflows/test-build.yml)\n\n# ssh-job\n\nEasier automated deployment through ssh via Github Action. 🚀\n\nExecute commands on target server with few easy steps :)\n\n## Options\n\n| Param               | default | required | description                                                                                                  |\n| :------------------ | :-----: | :------: | ------------------------------------------------------------------------------------------------------------ |\n| host                |   n/a   |   true   | Host to connect to                                                                                           |\n| port                |   22    |  false   | Port to connect to                                                                                           |\n| key                 |   n/a   |   true   | Private key used for authorization                                                                           |\n| passphrase          |   n/a   |  false   | Passphrase used to decrypt key                                                                               |\n| user                |   n/a   |   true   | User used for authorization                                                                                  |\n| password            |   n/a   |  false   | Password used for authorization                                                                              |\n| envs                |   n/a   |  false   | Json serialized secrets exported to shell                                                                    |\n| ignoredEnvs         |   n/a   |  false   | List of comma separated envs to ignore when exporting to shell                                               |\n| command             |   n/a   |   true   | Command/s or script to execute                                                                               |\n| exportActionOptions |  false  |   true   | Export action options, this is handy when you want to access HOST, USER or any other options in shell script |\n\n## Examples\n\nAuthorize with ssh private key and execute some commands\n\n```yml\n- name: create-directory\n  uses: nekiro/ssh-job@main\n  with:\n    host: ${{ secrets.HOST }}\n    key: ${{ secrets.KEY }}\n    user: ${{ secrets.USER }}\n    command: |\n      ls\n      mkdir dir\n```\n\nIt's possible to automatically pass github secrets to the shell script, it allows you to use provided secrets directly in the bash script.\n\nIn this example, we have few secrets for example `DIRECTORY`, we want to pass all of them to shell script, so we simply add `envs: ${{ toJson(secrets) }}` and use it as regular bash variable\n\nKeep in mind action options are not exported by default, so you wont be able to access HOST, KEY etc.\n\n```yml\n- name: create-directory\n  uses: nekiro/ssh-job@main\n  with:\n    host: ${{ secrets.HOST }}\n    key: ${{ secrets.KEY }}\n    user: ${{ secrets.USER }}\n    envs: ${{ toJson(secrets) }}\n    command: mkdir $DIRECTORY\n```\n\n## Contribution\n\nWant to improve this project or found a bug? Feel free to open pull requests and create issues.\n\nIf you are not technical or simply don't have time, there is always a way to give back by clicking on the sponsor tab and sending some $, everything is appreciated :D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekiro%2Fssh-job","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekiro%2Fssh-job","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekiro%2Fssh-job/lists"}