Skip to content

Commit

Permalink
Merge pull request #85 from Logicworks/feat/updates-cinc-inspec-v4
Browse files Browse the repository at this point in the history
Feat/updates cinc inspec v4
  • Loading branch information
micheelengronne authored Aug 12, 2020
2 parents ba22edc + 270783d commit 2728fd2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor/
17 changes: 11 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
source 'https://rubygems.org'
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

gem 'inspec', '~> 3'
gem 'rake'
gem 'rubocop'
gem 'github_changelog_generator', '~> 1.12.0', source: 'https://rubygems.org/'
gem 'rake', source: 'https://rubygems.org/'
gem 'rubocop', source: 'https://rubygems.org/'
gem 'unf_ext', source: 'https://rubygems.org/'

group :tools do
gem 'github_changelog_generator', '~> 1.12.0'
source 'https://packagecloud.io/cinc-project/stable' do
gem 'chef-config'
gem 'chef-utils'
gem 'cinc-auditor-bin'
gem 'inspec'
gem 'inspec-core'
end
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace :test do
# run inspec check to verify that the profile is properly configured
task :check do
dir = File.join(File.dirname(__FILE__))
sh("bundle exec inspec check #{dir}")
sh("bundle exec cinc-auditor check #{dir} --format json --log-level=error | jq .")
end
end

Expand Down
2 changes: 1 addition & 1 deletion controls/1_1_filesystem_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
# author: Kristian Vlaardingerbroek

cis_level = attribute('cis_level')
cis_level = input('cis_level')

title '1.1 Filesystem Configuration'

Expand Down
2 changes: 1 addition & 1 deletion inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ version: 0.4.2
inspec_version: '>= 2.3.5'
supports:
- platform-family: linux
attributes:
inputs:
- name: cis_level
required: false
description: 'CIS profile level to audit'
Expand Down

0 comments on commit 2728fd2

Please sign in to comment.