Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/updates cinc inspec v4 #85

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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