Problem: Failed to clone submodule
Issue
Semaphore won't clone a submodule. Submodule is from a different repository with different credentials, all saved and configured.
Impact
Semaphore Project
Installation method
Docker
Database
SQLite
Browser
Microsoft Edge
Semaphore Version
v2.19.7-e9dc41a-1785919551
Ansible Version
Logs & errors
Cloning into '/tmp/semaphore/project_1/repository_1_template_17/scripts/submodule1'... fatal: could not read Username for 'https://gitserver': terminal prompts disabled fatal: clone of 'https://gitserver/group/submodule1' into submodule path '/tmp/semaphore/project_1/repository_1_template_17/scripts/submodule1' failed Failed to clone 'scripts/submodule1'. Retry scheduled Cloning into '/tmp/semaphore/project_1/repository_1_template_17/scripts/submodule1'... fatal: could not read Username for 'https://gitserver': terminal prompts disabled fatal: clone of 'https://gitserver/group/submodule1' into submodule path '/tmp/semaphore/project_1/repository_1_template_17/scripts/submodule1' failed Failed to clone 'scripts/submodule1' a second time, aborting Cloning Repository https://gitserver/group/-ansible Cloning into 'repository_1_template_17'... warning: redirecting to https://gitserver/group/-ansible.git/ Submodule 'scripts/submodule1' (https://gitserver/group/submodule1) registered for path 'scripts/submodule1' Cloning into '/tmp/semaphore/project_1/repository_1_template_17/scripts/submodule1'... fatal: could not read Username for 'https://gitserver': terminal prompts disabled fatal: clone of 'https://gitserver/group/submodule1' into submodule path '/tmp/semaphore/project_1/repository_1_template_17/scripts/submodule1' failed Failed to clone 'scripts/submodule1'. Retry scheduled Cloning into '/tmp/semaphore/project_1/repository_1_template_17/scripts/submodule1'... fatal: could not read Username for 'https://gitserver': terminal prompts disabled fatal: clone of 'https://gitserver/group/submodule1' into submodule path '/tmp/semaphore/project_1/repository_1_template_17/scripts/submodule1' failed Failed to clone 'scripts/submodule1' a second time, aborting Failed updating repository: exit status 1 Failed to run task: exit status 1
Manual installation - system information
No response
Configuration
No response
Additional information
Cloning the repository with an empty task works, but not as a submodule...
Source: semaphoreui/semaphore