Closed linear[bot] closed 2 months ago
The enricher-aggregator fails if there are no enriched findings, or in general, no findings. It shouldn't fail the whole pipeline.
enricher-aggregator
It fails, because the previous enrichers had nothing to enrich, and as such, the enriched output file path doesn't exist:
https://github.com/ocurity/dracon/blob/ca533cd86b19648d372a727c7261e699c4e23dd6/pkg/putil/load.go#L98-L99
The
enricher-aggregator
fails if there are no enriched findings, or in general, no findings. It shouldn't fail the whole pipeline.It fails, because the previous enrichers had nothing to enrich, and as such, the enriched output file path doesn't exist:
https://github.com/ocurity/dracon/blob/ca533cd86b19648d372a727c7261e699c4e23dd6/pkg/putil/load.go#L98-L99
Desired Result
Ensure we can somewhat enforce this, i.e. during development etc. a warning is raised if you don't always writee.g. via a hook?e.g. via a semgrep rule?Follow-Up