The problem we have is that we want to check over 1000 repos in our Azure DevOps whether they are using a specific task. We need this for a tracking metric to measure how much coverage we have. I am thinking of a pseudocode to get this working.
- Use Azure DevOps REST API -> Get /_apis/git/repositories -> Find all yml file -> See if it includes this task name
- Use Azure DevOps REST API -> Get /_apis/projects -> Get pipeline_id for latest project for each build -> Get the latest build for each project -> see if it has the task name
Is there a recommended way to do this?