From 221b4634f785daabc7a0607ac068b4972faddbad Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Thu, 17 May 2018 12:01:14 +0300 Subject: [PATCH] Revert "Copy GitHub SSH key in Heroku to access private repositories" This reverts commit 2e2ecbc0a996af0042688d3d60b3ee7145718942. Conflicts: package.json --- heroku-copy-ssh-key-from-env.sh | 27 --------------------------- package.json | 1 - 2 files changed, 28 deletions(-) delete mode 100755 heroku-copy-ssh-key-from-env.sh diff --git a/heroku-copy-ssh-key-from-env.sh b/heroku-copy-ssh-key-from-env.sh deleted file mode 100755 index fc446637..00000000 --- a/heroku-copy-ssh-key-from-env.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -# Since we have a dependency to a private GitHub -# `sharetribe/sharetribe-sdk-js` repository, we must give Heroku SSH -# access to there. This script copies the GITHUB_SSH_KEY to the -# current user to enable SSH access to the repository. - -# NOTE: This script should be removed when the dependency is not a -# private repository anymore. - -set -e - -if [ -z "$GITHUB_SSH_KEY" ] -then - echo "No GitHub SSH key to copy" - exit 0 -fi - -echo "Copying GitHub SSH key" -mkdir -p ~/.ssh -chmod 700 ~/.ssh -echo "$GITHUB_SSH_KEY" > ~/.ssh/id_rsa -chmod 600 ~/.ssh/id_rsa - -echo "Adding GitHub SSH Host key to known hosts" -ssh-keyscan -H github.com >> ~/.ssh/known_hosts -chmod 600 ~/.ssh/known_hosts diff --git a/package.json b/package.json index e1c3700e..adcfa6dd 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "eject": "sharetribe-scripts eject", "start": "node server/index.js", "dev-server": "export NODE_ENV=development PORT=4000 REACT_APP_CANONICAL_ROOT_URL=http://localhost:4000&&yarn run build&&nodemon --watch server server/index.js", - "heroku-prebuild": "./heroku-copy-ssh-key-from-env.sh", "heroku-postbuild": "yarn run build", "audit": "nsp check --preprocessor yarn" },