{"id":18725583,"url":"https://github.com/reljicd/codeship-pro-github-ssh","last_synced_at":"2026-04-15T13:34:12.391Z","repository":{"id":94100339,"uuid":"143271909","full_name":"reljicd/codeship-pro-github-ssh","owner":"reljicd","description":"Securely setting GitHub SSH keys in Codeship Pro","archived":false,"fork":false,"pushed_at":"2018-08-02T09:21:00.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T18:48:59.119Z","etag":null,"topics":["codeship","docker","git","github"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reljicd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-08-02T09:20:43.000Z","updated_at":"2018-08-02T09:24:16.000Z","dependencies_parsed_at":"2023-03-04T18:45:51.524Z","dependency_job_id":null,"html_url":"https://github.com/reljicd/codeship-pro-github-ssh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reljicd/codeship-pro-github-ssh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reljicd%2Fcodeship-pro-github-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reljicd%2Fcodeship-pro-github-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reljicd%2Fcodeship-pro-github-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reljicd%2Fcodeship-pro-github-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reljicd","download_url":"https://codeload.github.com/reljicd/codeship-pro-github-ssh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reljicd%2Fcodeship-pro-github-ssh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T13:28:40.153Z","status":"ssl_error","status_checked_at":"2026-04-15T13:28:29.396Z","response_time":63,"last_error":"SSL_read: 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":["codeship","docker","git","github"],"created_at":"2024-11-07T14:10:53.087Z","updated_at":"2026-04-15T13:34:12.367Z","avatar_url":"https://github.com/reljicd.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Setting GitHub SSH keys in Codeship Pro](https://github.com/codeship-library/setting-ssh-private-key-in-pro)\n\n## Initialize Project\n\n- Clone this repo\n- Initialize as a new git repo -- `rm -rf .git \u0026\u0026 git init \u0026\u0026 git add . \u0026\u0026 git commit -m 'first commit'`\n\n## Selecting a Private Key\n\n### Option A -- Generate a public and private ssh key\n\n- To generate a `codeship_deploy_key` and `codeship_deploy_key.pub` file, modify the following command with your own email address and run our [ssh-helper tool](https://github.com/codeship-library/docker-utilities/tree/master/ssh-helper) in your project directory:\n\n```\ndocker run -it --rm -v $(pwd):/keys/ codeship/ssh-helper generate \"\u003cYOUR_EMAIL\u003e\"\n```\n\n### Option B -- Use your own pre-existing private ssh key\n\n- Copy file to project directory and rename to `codeship_deploy_key` (must be a key that does not require a passphrase)\n\n## Prepare the Environment Variables file\n\n- Run the following command from the project directory:\n\n```\ndocker run -it --rm -v $(pwd):/keys/ codeship/ssh-helper prepare\n```\n\n- Process will store `PRIVATE_SSH_KEY` value as a one liner entry into the `codeship.env` file. If `codeship.env` already exists, the `PRIVATE_SSH_KEY` entry will be appended to it.\n- Remove the `codeship_deploy_key` (!)\n- Add `codeship.env` to your `.gitignore` file (!)\n\n## Encrypt the Environment Variables file\n\n- Install our [jet cli tool](https://documentation.codeship.com/pro/jet-cli/installation/) on your local machine\n- Setup your repository on your SCM of choice\n- Grab the git url of the repository and create a Codeship Pro project\n- From your Codeship 'Project Settings' \u003e 'General' page, scroll down to AES key section and click 'Download Key'\n- Move downloaded key to your project directory and rename to `codeship.aes`\n- Add `codeship.aes` to your `.gitignore` file (!)\n- Add [any additional environment variables](https://documentation.codeship.com/pro/builds-and-configuration/environment-variables/#encrypting-your-environment-variables) to the `codeship.env` file\n- Run `jet encrypt codeship.env codeship.env.encrypted`\n- The `codeship.env.encrypted` will be safe to check into your git repository\n\n## Add public key to your SCM of choice\n\n- [Add the codeship_deploy_key.pub to your Github account](https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/)\n- Demo is set to attempt a connection with Github. You may use Bitbucket or Gitlab as well, but will require tweaking test steps in `codeship-steps.yml`\n\n## Run `jet steps`\n\n- Run `jet steps`\n- Steps should pass, demonstrating that `/root/.ssh/id_rsa` is now accessible to the main app via volumes\n- Be sure to modify the volume pathing to `.ssh` in the `codeship-services.yml` if the container user is not `root`\n- Add `.ssh` directory to your `.gitignore` file (!)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freljicd%2Fcodeship-pro-github-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freljicd%2Fcodeship-pro-github-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freljicd%2Fcodeship-pro-github-ssh/lists"}