Closed rx294 closed 3 years ago
Fixed code from
https://github.com/mitre/inspec_tools/blob/master/lib/utilities/inspec_util.rb#L98-L112
to
def self.control_status(control, for_summary = false)
status_list = control[:status].uniq
if control[:impact].to_f.zero?
'Not_Applicable'
elsif (status_list.include?('error') || status_list.empty?) && for_summary
'Profile_Error'
elsif status_list.include?('failed')
'Open'
elsif status_list.include?('passed')
'NotAFinding'
else
# profile skipped or profile error
'Not_Reviewed'
end
end
Found a deviation between Inspec_Tools summary bucketing and heimdall bucketing of controls…
Inspec_Tools summary does not report errors correctly