Submodules with Gitlab

Hi, What's the right way to manage permissions, submodule URLs, HTTPS vs SSH, etc. for a monorepo / repository with submodules? I created the project in the pages dashboard using the default method of OAuth and then scrolling through all the repositories and selecting the one containing my site. In theory this means that cloudflare has a token with permission to access all of my account. Now I'd like to add a submodule to the build process that's in a sibling directory of the site's repo. Unsurprisingly without further configuration the build fails:
Submodule 'Submodule' (https://gitlab+deploy-token-1234567:[email protected]/Group/Subomdule.git) registered for path 'Submodule'
Cloning into '/opt/buildhome/clone/Submodule'...
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.com/Group/Subomdule.git'
fatal: clone of 'https://gitlab+deploy-token-1234567:[email protected]/Group/Subomdule.git' into submodule path '/opt/buildhome/clone/Submodule' failed
Failed to clone 'Submodule'. Retry scheduled
Submodule 'Submodule' (https://gitlab+deploy-token-1234567:[email protected]/Group/Subomdule.git) registered for path 'Submodule'
Cloning into '/opt/buildhome/clone/Submodule'...
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.com/Group/Subomdule.git'
fatal: clone of 'https://gitlab+deploy-token-1234567:[email protected]/Group/Subomdule.git' into submodule path '/opt/buildhome/clone/Submodule' failed
Failed to clone 'Submodule'. Retry scheduled
Stack overflow says I can give pages permissions to access the submodule repo, but scrolling through the settings in both tools I am not seeing anything there that indicates exactly how they're connected together or any permissions I can change. What wouldb e the recommended way of doing this? Thanks
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server