【发布时间】:2021-02-26 15:00:15
【问题描述】:
我想从一个项目运行 yaml 管道。我的 yaml 中有一个任务是扫描所有源代码。使用此 Yaml,我想扫描 master 分支中的所有源代码,以查找同一组织内的所有项目和所有存储库。
如何获取所有项目的所有 repo 并进行迭代?有人可以帮我吗?
test.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)'
【问题讨论】:
标签: azure-devops azure-pipelines azure-pipelines-yaml azure-pipelines-tasks