我想从一个项目运行 yaml 管道。我的 yaml 中有一个任务是扫描所有源代码。使用这个 Yaml,我想扫描 master 分支中的所有源代码,以获取所有项目和同一 Org 中的所有存储库。
如何获取所有项目的所有 repo 并进行迭代?有人能帮我吗 ?
测试.yaml
repositories:
- repository: justAnotherName
type: github
name: myGitRepo
endpoint: myGitServiceConnection
trigger:
branches:
include:
- master
steps:
- task: CredScan@2
inputs:
toolMajorVersion: 'V2'
outputFormat: 'tsv'
scanFolder: '$(Build.SourcesDirectory)'