Docs feedback: Using Git submodules with GitLab CI/CD page should mention CI_JOB_TOKEN Access
This page: https://docs.gitlab.com/ee/ci/git_submodules.html#use-git-submodules-in-cicd-jobs
In the "Use Git submodules in CI/CD jobs" section.
It should mention it is necessary to update the Submodule Project's "Token Access Permissions" to allow the GitLab CI Jobs of the Project that uses the Submodule permission to access the Submodule Project.
i.e. in the Submodule Project, add the Project(s) that use the Submodule in this section:
I would suggest adding this as point 3. or it could go Troubleshooting section.
Took me a while to track this down as the problem, eventually this Stack Overflow answer provided the solution: https://stackoverflow.com/a/76520335