catalyst / moodle-tool_mfa

A Multi-Factor Authentication Moodle plugin with flexible support for TOTP, Email, IP and more
https://moodle.org/plugins/tool_mfa
34 stars 38 forks source link

Exemption factor as git submodule via SSH breaks public cloning #446

Closed bozicm closed 11 months ago

bozicm commented 1 year ago

Hello,

our internal build system uses HTTP access to this repo whereas the submodule is reached via SSH (commit). This is the error:

git clone --recursive https://github.com/catalyst/moodle-tool_mfa.git
Cloning into 'moodle-tool_mfa'...
remote: Enumerating objects: 5101, done.
remote: Counting objects: 100% (1107/1107), done.
remote: Compressing objects: 100% (358/358), done.
remote: Total 5101 (delta 738), reused 978 (delta 681), pack-reused 3994
Receiving objects: 100% (5101/5101), 1.71 MiB | 7.84 MiB/s, done.
Resolving deltas: 100% (2730/2730), done.
Submodule 'factor/exemption' (git@github.com:catalyst/moodle-factor_exemption.git) registered for path 'factor/exemption'
Cloning into '/php/moodle-tool_mfa/factor/exemption'...
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.
fatal: clone of 'git@github.com:catalyst/moodle-factor_exemption.git' into submodule path '/php/moodle-tool_mfa/factor/exemption' failed
Failed to clone 'factor/exemption'. Retry scheduled
Cloning into '/php/moodle-tool_mfa/factor/exemption'...
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.
fatal: clone of 'git@github.com:catalyst/moodle-factor_exemption.git' into submodule path '/php/moodle-tool_mfa/factor/exemption' failed
Failed to clone 'factor/exemption' a second time, aborting

Could you change the address of the submodule to the HTTP address?

Peterburnett commented 11 months ago

PR merged, closing as completed