Skip to content

Skip rulesets if path is not configured

Brian Williams requested to merge bwill/skip-rulesets-when-unset into main

What does this MR do?

If report.Config.Path is not set, then the analyzer will emit an error message like:

[ERRO] [cluster-image-scanning] [2021-07-07T12:33:27-05:00] ▶ read /Users/bwilliams/git/cluster-image-scanning: is a directory

Since rulesets are only used by SAST and Secret Detection, the analyzer should allow for this to be unset, and skip trying to filter by rulesets if it is not.

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Zach Rice

Merge request reports