One Pipeline to Rule Them All: Ensuring CodeQL Scanning Results and Dependency Scanning Results Go to the Intended Repository
May 21, 2025Michael Omokoh

Summary
This post introduces a solution for ensuring CodeQL and Dependency Scanning results are published to the correct repository in Azure DevOps pipelines, particularly in multi-repository scenarios. It details the use of the `advancedsecurity.publish.repository.infer: true` pipeline variable for inferred publishing and the `workspaceRepo: true` setting for explicitly identifying the target repository when multiple repositories are checked out. The post also covers error handling for inferred publishing and provides examples for both CodeQL and Dependency Scanning tasks.
More from the Azure Pipelines Supply Chain Security trail
- Axios npm Supply Chain Compromise – Guidance for Azure Pipelines Customers
- Automate your open-source dependency scanning with Advanced Security
- April Patches for Azure DevOps Server and Team Foundation Server
- Introducing Pull Request Annotation for CodeQL and Dependency Scanning in GitHub Advanced Security for Azure DevOps
- February patches for Azure DevOps Server