How to pull MULTIPLE private repos from GitHub when deploying Heroku app?

This page summarizes the projects mentioned and recommended in the original post on /r/Heroku

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • heroku-buildpack-ssh-key

    Add an ssh key to your build

  • -----> Building on the Heroku-20 stack -----> Using buildpacks: 1. https://github.com/heroku/heroku-buildpack-ssh-key.git 2. heroku/nodejs -----> heroku-buildpack-ssh-key app detected -----> Install heroku-buildpack-ssh-key -----> Installed SSH key from BUILDPACK_SSH_KEY -----> Node.js app detected -----> Creating runtime environment NPM_CONFIG_LOGLEVEL=verbose NODE_VERBOSE=false NODE_ENV=production NODE_MODULES_CACHE=true -----> Installing binaries engines.node (package.json): unspecified engines.npm (package.json): unspecified (use default) Resolving node version 14.x... Downloading and installing node 14.18.1... Using default npm version: 6.14.15 -----> Restoring cache - node_modules -----> Installing dependencies Installing node modules npm info it worked if it ends with ok npm verb cli [ npm verb cli '/tmp/build_cb0dbd8a/.heroku/node/bin/node', npm verb cli '/tmp/build_cb0dbd8a/.heroku/node/bin/npm', npm verb cli 'ci', npm verb cli '--production=false', npm verb cli '--unsafe-perm', npm verb cli '--userconfig', npm verb cli '/tmp/build_cb0dbd8a/.npmrc' npm verb cli ] npm info using [email protected] npm info using [email protected] npm verb config Skipping project config: /tmp/build_cb0dbd8a/.npmrc. (matches userconfig) npm verb npm-session b7db2623ba8acade npm info prepare initializing installer npm verb prepare starting workers npm verb prepare installation prefix: /tmp/build_cb0dbd8a npm verb prepare using package-lock.json npm WARN prepare removing existing node_modules/ before installation npm verb checkLock verifying package-lock data npm info prepare Done in 0.102s npm verb extractTree extracting dependencies to node_modules/ npm http fetch GET 200 https://registry.npmjs.org/express/-/express-4.17.1.tgz 108ms npm verb teardown shutting down workers. npm info teardown Done in 0s npm verb stack Error: exited with error code: 128 npm verb stack at ChildProcess. (/tmp/build_cb0dbd8a/.heroku/node/lib/node_modules/npm/node_modules/pacote/lib/util/finished.js:12:19) npm verb stack at ChildProcess.emit (events.js:400:28) npm verb stack at maybeClose (internal/child_process.js:1058:16) npm verb stack at Socket. (internal/child_process.js:443:11) npm verb stack at Socket.emit (events.js:400:28) npm verb stack at Pipe. (net.js:686:12) npm verb cwd /tmp/build_cb0dbd8a npm verb Linux 4.4.0-1097-aws npm verb argv "/tmp/build_cb0dbd8a/.heroku/node/bin/node" "/tmp/build_cb0dbd8a/.heroku/node/bin/npm" "ci" "--production=false" "--unsafe-perm" "--userconfig" "/tmp/build_cb0dbd8a/.npmrc" npm verb node v14.18.1 npm verb npm v6.14.15 npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/GirkovArpa/private-repo-2.git npm ERR! npm ERR! ERROR: Repository not found. npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! npm ERR! exited with error code: 128 npm verb exit [ 1, true ] npm http fetch GET 200 https://registry.npmjs.org/ [TRUNCATED FOR REDDIT] npm timing npm Completed in 2322ms npm ERR! A complete log of this run can be found in: npm ERR! /tmp/npmcache.9oKiI/_logs/2021-11-14T04_13_25_778Z-debug.log -----> Build failed We're sorry this build is failing! You can troubleshoot common issues here: https://devcenter.heroku.com/articles/troubleshooting-node-deploys Some possible problems: - Node version not specified in package.json https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version Love, Heroku ! Push rejected, failed to compile Node.js app. ! Push failed

  • custom-ssh-key-buildpack

    :key: Add an SSH key to you Heroku dyno :key:

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • npm verb node v14.18.1 npm verb npm v6.14.15 npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://$%7BENV.PERSONAL_ACCESS_TOKEN%[email protected]/GirkovArpa/my-private-repo.git npm ERR! npm ERR! remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. npm ERR! remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. npm ERR! fatal: Authentication failed for 'https://github.com/GirkovArpa/my-private-repo.git/' npm ERR! npm ERR! exited with error code: 128 npm verb exit [ 1, true ] npm timing npm Completed in 2089ms npm ERR! A complete log of this run can be found in: npm ERR! /tmp/npmcache.nFpOI/_logs/2021-11-14T08_19_49_212Z-debug.log -----> Build failed

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts