Woodpecker CI and git submodules, could not read username for https://github.com
So you’re using Woodpecker CI and you’ve found the following error:
could not read Username for 'https://github.com': No such device or address
Woodpecker documentation has a troubleshooting section about that issue in Woodpecker’s documentation but in my case the issue was different.
I’m using private repositories and private submodules in my repo, and in the clone step for my pipelin I found that even if I’ve changed the submodules to use HTTPS repo urls and not the SSH (git@…) urls as Woodpecker’s documentation states for submodules, the mentioned error was shown.
The problem was that the repository to be cloned has accidentally public visibility and the credentials used by Woodpecker could not be used to clone the private submodules, so once I made the main repo private, the clone step worked perfectly.