title: How do I resolve "Host key verification" error on Heroku deployment?
body: <p>When trying to deploy a branch on a Heroku app, I'm getting the following error:</p>
  <pre><code>   Host key verification failed.
     fatal: Could not read from remote repository.
  </code></pre>
  <p>There is one exception to this verification failed: I can deploy my branch on one specific pre-existing app with no issue. However, other than that specific app, I can't seem to deploy the branch - even when I create entirely new apps.</p>
  <p>Heroku has a support page for this particular issue here: <a href="https://help.heroku.com/SP5I8HXO/host-key-verification-error-when-accessing-private-github-repository" rel="nofollow noreferrer">https://help.heroku.com/SP5I8HXO/host-key-verification-error-when-accessing-private-github-repository</a></p>
  <p>However, it's not clear to me what I should do once I generate the PAT. Also, it's not clear to me why this issue would show up on review apps (part of the same pipeline as the one app that's working) and on entirely new apps.</p>
  <p>How do I resolve this issue?</p>
  <p>Edit:</p>
  <p>Here's the complete deployment log.</p>
  <pre><code>   Building on the Heroku-18 stack
     Determining which buildpack to use for this app
     Node.js app detected
     
     Creating runtime environment
     
     NPM_CONFIG_LOGLEVEL=error
     USE_YARN_CACHE=true
     NODE_ENV=production
     NODE_MODULES_CACHE=true
     NODE_VERBOSE=false
     
     Installing binaries
     engines.node (package.json):  16.x
     engines.npm (package.json):   unspecified (use default)
     engines.yarn (package.json):  1.22.x
     
     Resolving node version 16.x...
     Downloading and installing node 16.13.1...
     Using default npm version: 8.1.2
     Resolving yarn version 1.22.x...
     Downloading and installing yarn (1.22.17)
     Installed yarn 1.22.17
     
     Installing dependencies
     Installing node modules (yarn.lock)
     yarn install v1.22.17
     [1/4] Resolving packages...
     warning react-scripts &gt; webpack-dev-server &gt; chokidar &gt; fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
     [2/4] Fetching packages...
     error Command failed.
     Exit code: 128
     Command: git
     Arguments: ls-remote --tags --heads ssh://git@github.com/ljharb/qs.git
     Directory: /tmp/build_5650c4ab
     Output:
     Host key verification failed.
     fatal: Could not read from remote repository.
     
     Please make sure you have the correct access rights
     and the repository exists.
     info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
  </code></pre>