Scanner command used when applicable (private details masked)
Languages of the repository - C#
Error observed - We are trying to run scans in PR and build pipelines. Our source code is in repo-1 and yaml pipeline code is in repo-2. When PR or build pipeline is triggered, we are not able to see scan data in the scan report. All vital scan parameters are showing as 0.
This probably has something to do with how the code is being checked out from source control (say, a shallow versus a full clone). Do you see any differences in the pipeline logs regarding the checkout?
This will make a difference in the detection of new code (which code changed in your pull request) – which your classic pipeline appears to be better at than your YAML-based pipeline.
We tried creating yaml pipeline from the same repo where we have our source code available. We are getting same results as with classic pipelines. The results are different and gives 0 for all vital scan parameters only when source code and pipeline yaml are in different repos.
Below is the high level git repo setup. We have only basic skeleton and reference in repo-1. Our YAML code is in different repo. Please let us know is it would be possible to connect over some bridge.