{"id":18524517,"url":"https://github.com/stelligent/git-ssh-build","last_synced_at":"2026-01-23T13:48:27.821Z","repository":{"id":145835277,"uuid":"179711471","full_name":"stelligent/git-ssh-build","owner":"stelligent","description":"Mount SSH Socket At Docker Build Time","archived":false,"fork":false,"pushed_at":"2020-01-07T21:33:36.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-14T19:17:24.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/stelligent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-04-05T15:49:51.000Z","updated_at":"2020-01-07T21:33:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"2748aadc-6dca-4f9c-864d-1459fe815c51","html_url":"https://github.com/stelligent/git-ssh-build","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stelligent/git-ssh-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fgit-ssh-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fgit-ssh-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fgit-ssh-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fgit-ssh-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stelligent","download_url":"https://codeload.github.com/stelligent/git-ssh-build/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fgit-ssh-build/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28693331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-06T17:42:10.082Z","updated_at":"2026-01-23T13:48:27.803Z","avatar_url":"https://github.com/stelligent.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git SSH Mount At Build\n\nExample project of cloning a private repository during a docker build\n\n\u003e No SSH Keys are stored in the docker layers - EVER\n\nDocker mounts your SSH socket into the container layer during build to perform\nthe steps that you specify using:\n\n```\nRUN --mount=type=ssh \u003cyour command\u003e\n```\n\n[This article helps explain](https://medium.com/@tonistiigi/build-secrets-and-ssh-forwarding-in-docker-18-09-ae8161d066) more about what is happening.\n\n## REQUIREMENTS\n\n  - Docker 18.09+\n  - SSH Agent on your host\n  - SSH Keys mounted in running SSH agent on host\n  - SSH access to the repository you wish to clone\n\n## USAGE\n\nClone the repository and run\n\n```\nmake run REPOSITORY=\u003crepository_ssh_url\u003e\n```\n\n\u003e Replace repository_ssh_url with the git ssh path to your repository\n\n## TROUBLESHOOTING\n\nFor whatever reason you need to explicitly add your ssh keys to your local SSH agent on MacOS. If you get a \"Permission Denied, public key\" error try running this on your host.\n\n```\nssh-add ~/.ssh/id_rsa\n```\n\nThis will add your default key to your ssh agent. Retry your `make run` command again.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstelligent%2Fgit-ssh-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstelligent%2Fgit-ssh-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstelligent%2Fgit-ssh-build/lists"}