StoreSecurityReportsWorker fails to store kubesec report
Summary
When attempting to store a kubesec report for tpresa/demo-secure-gcp
, an error is thrown and both the SAST report and all other reports are failing to be stored.
PG::NotNullViolation: ERROR: null value in column "primary_identifier_id" violates not-null constraint
Steps to reproduce
https://gitlab.com/tpresa/demo-secure-gcp/-/pipelines/263803147
Example Project
https://gitlab.com/tpresa/demo-secure-gcp/-/pipelines/263803147
What is the current bug behavior?
SAST report fails to parse correctly
What is the expected correct behavior?
SAST report should parse correctly
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com