diff --git a/README.md b/README.md index e477220f..dcaeb109 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,10 @@ The `audit` cookbook allows you to run Chef Compliance profiles as part of a Che Using the `inspec_version` attribute, please use the following `InSpec` version based on your Chef Compliance version: -| Chef Compliance version | InSpec version | -|----------------------------|----------------------------| -| Less or equal to 1.1.23 | 0.20.1 | -| Greater than 1.1.23 | Greater or equal to 0.21.0 | +| Chef Compliance version | InSpec version | Audit Cookbook version | +|----------------------------|----------------------------|----------------------------| +| Less or equal to 1.1.23 | 0.20.1 | 0.7.0 | +| Greater than 1.1.23 | Greater or equal to 0.22.1 | 0.8.0 | You can see all publicly available InSpec versions [here](https://rubygems.org/gems/inspec/versions) diff --git a/attributes/default.rb b/attributes/default.rb index 8df4921d..9d015536 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -32,5 +32,5 @@ # fail converge after posting report if any audits have failed default['audit']['fail_if_any_audits_failed'] = false -# inspec gem version to install(e.g. '0.22.0') or 'latest' -default['audit']['inspec_version'] = '0.20.1' +# inspec gem version to install(e.g. '0.22.1') or 'latest' +default['audit']['inspec_version'] = '0.22.1' diff --git a/libraries/profile.rb b/libraries/profile.rb index 2a86d9a3..8a37b781 100644 --- a/libraries/profile.rb +++ b/libraries/profile.rb @@ -107,7 +107,7 @@ class ComplianceProfile < Chef::Resource # rubocop:disable Metrics/ClassLength # TODO: flesh out inspec's report CLI interface, # make this an execute[inspec check ...] - runner = ::Inspec::Runner.new('report' => true) + runner = ::Inspec::Runner.new('report' => true, 'format' => 'json-min') runner.add_target(path, {}) begin runner.run diff --git a/metadata.rb b/metadata.rb index 116d470e..bce06afc 100644 --- a/metadata.rb +++ b/metadata.rb @@ -9,4 +9,4 @@ source_url 'https://github.com/chef-cookbooks/audit' if defined?(:source_url) issues_url 'https://github.com/chef-cookbooks/audit/issues' if defined?(:issues_url) -version '0.7.1' +version '0.8.0'