mitre / inspec_tools

A command-line and ruby API of utilities, converters and tools for creating, converting and processing security baseline formats, results and data
https://inspec-tools.mitre.org/
Other
91 stars 30 forks source link

Provide warning output when certain portions of the Inspec control cannot be filled out #128

Closed Bialogs closed 2 years ago

Bialogs commented 4 years ago

When converting CIS XLSX to Inspec, there are oftentimes when the spreadsheet is not 100% complete. We detect this with nil and empty checks, but should report via STDOUT a message to the user that these fields are empty due to input format.

Bialogs commented 4 years ago

We can do this in

https://github.com/mitre/inspec_tools/blob/586b0f6f25c9199d62bdc8d125a7b57ca9f4c889/lib/inspec_tools/inspec.rb#L300-L302

when the .nil? case is true.

aaronlippold commented 3 years ago

Given @camdenmoors latest work, this could be a good issue for him?

camdenmoors commented 2 years ago

*2InSpec on the SAF CLI will now warn you if fields are missing but have a mapping