{"id":45344544,"url":"https://github.com/joshlarsen/ssh-tunnel-action","last_synced_at":"2026-02-21T11:05:59.342Z","repository":{"id":65160358,"uuid":"340438266","full_name":"joshlarsen/ssh-tunnel-action","owner":"joshlarsen","description":"Connect to a GitHub Action runner via SSH through an ngrok tunnel.","archived":false,"fork":false,"pushed_at":"2024-12-05T10:38:15.000Z","size":7,"stargazers_count":15,"open_issues_count":4,"forks_count":16,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-11T17:43:55.868Z","etag":null,"topics":["actions","ngrok","ssh","tunnel"],"latest_commit_sha":null,"homepage":"","language":null,"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/joshlarsen.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}},"created_at":"2021-02-19T17:14:14.000Z","updated_at":"2025-12-25T16:01:16.000Z","dependencies_parsed_at":"2023-01-05T05:02:47.998Z","dependency_job_id":null,"html_url":"https://github.com/joshlarsen/ssh-tunnel-action","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/joshlarsen/ssh-tunnel-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshlarsen%2Fssh-tunnel-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshlarsen%2Fssh-tunnel-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshlarsen%2Fssh-tunnel-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshlarsen%2Fssh-tunnel-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshlarsen","download_url":"https://codeload.github.com/joshlarsen/ssh-tunnel-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshlarsen%2Fssh-tunnel-action/sbom","scorecard":{"id":534121,"data":{"date":"2025-08-11","repo":{"name":"github.com/joshlarsen/ssh-tunnel-action","commit":"49a8c4ee0adc5cda59071124913878d1382ad822"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"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":"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":"Code-Review","score":3,"reason":"Found 2/6 approved changesets -- score normalized to 3","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"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 '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":"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-20T06:29:44.367Z","repository_id":65160358,"created_at":"2025-08-20T06:29:44.367Z","updated_at":"2025-08-20T06:29:44.367Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29679095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T09:33:50.764Z","status":"ssl_error","status_checked_at":"2026-02-21T09:33:19.949Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["actions","ngrok","ssh","tunnel"],"created_at":"2026-02-21T11:05:58.872Z","updated_at":"2026-02-21T11:05:59.335Z","avatar_url":"https://github.com/joshlarsen.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## GitHub Action SSH Tunnel via ngrok\n\nA GitHub Action for connecting to the runner via SSH.\n\n### Why?\n\nDebugging GitHub Actions remotely can be difficult. Maybe you want to connect to the runner environment live to troubleshoot.\n\n### Requirements\n\n1. An [ngrok](https://ngrok.com/) account (free)\n2. An SSH public key (e.g. `/.ssh/id_rsa.pub`)\n\n### Compatibility\n\nThis Action was only tested on the **Ubuntu 24.04** runner, but it may work on other Linux based runners.\n\n### Setup\n\nCreate a YAML workflow (e.g. `ssh.yml`) in `.github/workflows` following this example:\n\n```yaml\nname: SSH Tunnel\non: push\n\njobs:\n  deploy:\n    name: Set up tunnel\n    runs-on: ubuntu-24.04\n    steps:\n    - name: Checkout\n      uses: actions/checkout@v2\n      \n    - name: Setup tunnel\n      uses: joshlarsen/ssh-tunnel-action@main\n      with:\n        timeout: 1h\n        ssh_public_key: ${{ secrets.SSH_PUBLIC_KEY }}\n        ngrok_token: ${{ secrets.NGROK_TOKEN }}\n```\n\n### Required Secrets\n\nCreate two repository secrets (Settings -\u003e Secrets -\u003e New repository secret)\n\n`SSH_PUBLIC_KEY`: your local SSH public key (e.g. `~/.ssh/id_rsa.pub`)\n\n`NGROK_TOKEN`: your ngrok auth token\n\n### Deploy\n\nOn the next push, GitHub Actions will download the ngrok binary and set up a TLS tunnel on a random port. Check the [ngrok dashboard](https://dashboard.ngrok.com/status/tunnels) to get the hostname and port the tunnel is listening on.\n\n![ngrok tunnels](https://user-images.githubusercontent.com/2565382/108560004-179c1f80-72ca-11eb-8fb1-92436b1e9024.png)\n\n### Connect via SSH\n\nThe runner username is `runner`. Connect to the ngrok tunnel port using SSH:\n\n```\n$ ssh -p 11785 runner@0.tcp.ngrok.io \n\nThe authenticity of host '[0.tcp.ngrok.io]:11785 ([3.134.39.220]:11785)' can't be established.\nED25519 key fingerprint is SHA256:uTYNJTVtTZ4ua3u0fxnV2qMngjurJp5oao6BcgOZfEE.\nAre you sure you want to continue connecting (yes/no/[fingerprint])? yes\nWarning: Permanently added '[0.tcp.ngrok.io]:11785,[3.134.39.220]:11785' (ECDSA) to the list of known hosts.\n\nWelcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-1017-azure x86_64)\n\n * Documentation:  https://help.ubuntu.com\n * Management:     https://landscape.canonical.com\n * Support:        https://ubuntu.com/pro\n\n System information as of Sun Dec  1 21:56:33 UTC 2024\n\n  System load:  2.09               Processes:             173\n  Usage of /:   61.9% of 71.61GB   Users logged in:       0\n  Memory usage: 2%                 IPv4 address for eth0: 10.3.0.13\n  Swap usage:   0%\n\nExpanded Security Maintenance for Applications is not enabled.\n\n40 updates can be applied immediately.\n24 of these updates are standard security updates.\nTo see these additional updates run: apt list --upgradable\n\n1 additional security update can be applied with ESM Apps.\nLearn more about enabling ESM Apps service at https://ubuntu.com/esm\n\n\n\nThe programs included with the Ubuntu system are free software;\nthe exact distribution terms for each program are described in the\nindividual files in /usr/share/doc/*/copyright.\n\nUbuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by\napplicable law.\n\nrunner@fv-az214-809:~$ \nrunner@fv-az214-809:~$ curl ipinfo.io\n{\n  \"ip\": \"52.173.149.212\",\n  \"city\": \"Des Moines\",\n  \"region\": \"Iowa\",\n  \"country\": \"US\",\n  \"loc\": \"41.5878,-93.6274\",\n  \"org\": \"AS8075 Microsoft Corporation\",\n  \"postal\": \"50392\",\n  \"timezone\": \"America/Chicago\",\n  \"readme\": \"https://ipinfo.io/missingauth\"\n}\nrunner@fv-az214-809:~$ \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshlarsen%2Fssh-tunnel-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshlarsen%2Fssh-tunnel-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshlarsen%2Fssh-tunnel-action/lists"}