PHPCSStandards / phpcs-docs

1 stars 0 forks source link

config-repos: Error when running generate command with git path as source #3

Open jrfnl opened 3 years ago

jrfnl commented 3 years ago

Using the config-repos branch and without changing anything, I tried to run the following from the root of this repository:

$ php ./bin/phpcsdocs generate

And got the following error response:

In GitCodeRepository.php line 26:

  The command "git clone "git@github.com:PHPCompatibility/PHPCompatibility.git" "var/repos/PHPCompatibility/"" failed.

  Exit Code: 128(Invalid exit argument)

  Working directory: D:\000_GitHub\PHPCS\PHPCSStandards\phpcs-docs

  Output:
  ================

  Error Output:
  ================
  Cloning into 'var/repos/PHPCompatibility'...
  Warning: Permanently added the RSA host key for IP address '140.82.121.3' to the list of known hosts.
  git@github.com: Permission denied (publickey).
  fatal: Could not read from remote repository.

  Please make sure you have the correct access rights
  and the repository exists.
afilina commented 3 years ago

This looks like a missing SSH key on the server that's running the git command: git@github.com: Permission denied (publickey)