Make CVS use default branch context

What does this MR do and why?

sbom_occurrence.pipeline does not contain reliable data, since we skip updates of pipelines when inserting sbom_occurrences records. This change updates CVS to use the project default branch instead. When we begin running CVS for all tracked contexts, we can iterate over the project_tracked_contexts records to determine what branches to scan.

References

Fixes: #582958, #582960

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Brian Williams

Merge request reports

Loading