Commit 938e0abc authored by Michał Zając's avatar Michał Zając

Rename findings variable to vulnerabilities

parent 84aabb40
......@@ -13,8 +13,8 @@ module Security
end
def execute
findings = ::Security::PipelineVulnerabilitiesFinder.new(pipeline: @pipeline, params: { report_type: @report_types }).execute
findings.findings.group_by(&:report_type).compact.transform_values(&:size).reverse_merge(no_counts)
vulnerabilities = ::Security::PipelineVulnerabilitiesFinder.new(pipeline: @pipeline, params: { report_type: @report_types }).execute
vulnerabilities.findings.group_by(&:report_type).compact.transform_values(&:size).reverse_merge(no_counts)
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment