79505330

Date: 2025-03-13 03:24:17
Score: 1.5
Natty:
Report link

To clone a submodule from another project, you can refer to the steps below.

  1. In your new_proj, turn off Limit job authorization scope to current project for non-release pipelines and Protect access to repositories in YAML pipelines option from Project Settings -> Pipelines -> Settings.

    enter image description here

  2. In your pipeline, set submodules to true in your checkout task.

    steps:
    - checkout: self
      submodules: true
    
    - script: |
        tree
      displayName: 'ListAllFiles'
    
  3. In your base_repo project, add build service account Project Collection Build Service (yourOrgName) into the Contributors group. (If you still have the same error in the pipeline, add project-level build service account new_proj Build Service (yourOrgName) into the Contributors group as well.)

    enter image description here

  4. Result:

    enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same error
  • High reputation (-1):
Posted by: Ziyang Liu-MSFT