Skip to content

Schedule StoreScansWorker for root pipelines only

mo khan requested to merge mokhax/393305/state-machine into master

What does this MR do and why?

This change ensures that the StoreScansWorker is only scheduled when a root pipeline transitions to a completed status. This ensures that all the Security::Scan records are created before the worker begins executing.

#393305 (comment 1476903463)

How to set up and validate locally

  1. Clone https://gitlab.com/gitlab-org/govern/threat-insights-demos/verification-projects/verify-393305/parent-child-pipeline to your local gdk
  2. Trigger a pipeline in the project.
  3. Navigate to the vulnerability report.
  4. Select "Still Detected" under "Activity"
  5. Ensure that the vulnerability report contains two vulnerabilities.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by mo khan

Merge request reports