Skip to content

Commit 781af3b

Browse files
authored
Merge pull request #26 from dev-sec/ap/bump-version-1.4.0
Bump version to 1.4.0 and switch to inspec 3 for check
2 parents 45152ca + 4323770 commit 781af3b

File tree

6 files changed

+50
-29
lines changed

6 files changed

+50
-29
lines changed

.rubocop.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
AllCops:
33
Exclude:
44
- vendor/**/*
5-
- "*/puppet/Puppetfile"
6-
- "*/puppet/.tmp/**/*"
7-
TargetRubyVersion: 1.9
85
Documentation:
96
Enabled: false
107
AlignParameters:

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,36 @@
11
# Change Log
22

3+
## [1.4.0](https://github.com/dev-sec/ssl-baseline/tree/1.4.0) (2019-05-14)
4+
[Full Changelog](https://github.com/dev-sec/ssl-baseline/compare/1.3.0...1.4.0)
5+
6+
**Closed issues:**
7+
8+
- Ubuntu 14.04 unsupported? [\#20](https://github.com/dev-sec/ssl-baseline/issues/20)
9+
- Control for ROBOT Attack [\#17](https://github.com/dev-sec/ssl-baseline/issues/17)
10+
11+
**Merged pull requests:**
12+
13+
- Update issue templates [\#23](https://github.com/dev-sec/ssl-baseline/pull/23) ([rndmh3ro](https://github.com/rndmh3ro))
14+
- avoid inspec depricated warning in inspec version 1.51.18 [\#19](https://github.com/dev-sec/ssl-baseline/pull/19) ([Viktor-ret](https://github.com/Viktor-ret))
15+
- control for robotattack [\#18](https://github.com/dev-sec/ssl-baseline/pull/18) ([supergicko](https://github.com/supergicko))
16+
- v-update minimum inspec version to \>=1.21.0 [\#16](https://github.com/dev-sec/ssl-baseline/pull/16) ([supergicko](https://github.com/supergicko))
17+
- use recommended spdx license identifier [\#14](https://github.com/dev-sec/ssl-baseline/pull/14) ([chris-rock](https://github.com/chris-rock))
18+
- Add configurable attributes. [\#13](https://github.com/dev-sec/ssl-baseline/pull/13) ([rhass](https://github.com/rhass))
19+
320
## [1.3.0](https://github.com/dev-sec/ssl-baseline/tree/1.3.0) (2017-05-08)
421
[Full Changelog](https://github.com/dev-sec/ssl-baseline/compare/v1.2.0...1.3.0)
522

623
**Merged pull requests:**
724

825
- Test for all [\#10](https://github.com/dev-sec/ssl-baseline/pull/10) ([supergicko](https://github.com/supergicko))
926
- restrict ruby testing to version 2.3.3 [\#9](https://github.com/dev-sec/ssl-baseline/pull/9) ([atomic111](https://github.com/atomic111))
10-
- Added control check for disabled CBC [\#8](https://github.com/dev-sec/ssl-baseline/pull/8) ([supergicko](https://github.com/supergicko))
1127

1228
## [v1.2.0](https://github.com/dev-sec/ssl-baseline/tree/v1.2.0) (2017-03-10)
1329
[Full Changelog](https://github.com/dev-sec/ssl-baseline/compare/v1.1.3...v1.2.0)
1430

1531
**Merged pull requests:**
1632

33+
- Added control check for disabled CBC [\#8](https://github.com/dev-sec/ssl-baseline/pull/8) ([supergicko](https://github.com/supergicko))
1734
- Add only\_if to controls [\#7](https://github.com/dev-sec/ssl-baseline/pull/7) ([alexpop](https://github.com/alexpop))
1835
- Sslports bug [\#6](https://github.com/dev-sec/ssl-baseline/pull/6) ([supergicko](https://github.com/supergicko))
1936
- add common files [\#5](https://github.com/dev-sec/ssl-baseline/pull/5) ([atomic111](https://github.com/atomic111))

Gemfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

3-
gem 'highline', '~> 1.6.0'
4-
gem 'inspec', '~> 1'
5-
gem 'rack', '1.6.4'
6-
gem 'rake'
7-
gem 'rubocop', '~> 0.46.0'
5+
gem 'highline', '~> 2.0.2'
6+
gem 'inspec', '~> 3'
7+
gem 'rack', '~> 2.0.7'
8+
gem 'rake', '~> 12.3.2'
9+
gem 'rubocop', '~> 0.68.1'
810

911
group :tools do
10-
gem 'github_changelog_generator', '~> 1.12.0'
12+
gem 'github_changelog_generator', '~> 1.14.3'
13+
gem 'pry-coolline', '~> 0.2.5'
1114
end

Rakefile

100644100755
Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env rake
2-
# encoding: utf-8
32

43
require 'rake/testtask'
54
require 'rubocop/rake_task'
@@ -20,23 +19,30 @@ task default: [:lint, 'test:check']
2019
namespace :test do
2120
# run inspec check to verify that the profile is properly configured
2221
task :check do
23-
dir = File.join(File.dirname(__FILE__))
24-
sh("bundle exec inspec check #{dir}")
22+
require 'inspec'
23+
puts "Checking profile with InSpec Version: #{Inspec::VERSION}"
24+
profile = Inspec::Profile.for_target('.', backend: Inspec::Backend.create(Inspec::Config.mock))
25+
pp profile.check
2526
end
2627
end
2728

28-
# Automatically generate a changelog for this project. Only loaded if
29-
# the necessary gem is installed. By default its picking up the version from
30-
# inspec.yml. You can override that behavior with `rake changelog to=1.2.0`
31-
begin
32-
require 'yaml'
33-
metadata = YAML.load_file('inspec.yml')
34-
v = ENV['to'] || metadata['version']
35-
puts "Generate changelog for version #{v}"
36-
require 'github_changelog_generator/task'
37-
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
38-
config.future_release = v
29+
task :changelog do
30+
# Automatically generate a changelog for this project. Only loaded if
31+
# the necessary gem is installed. By default its picking up the version from
32+
# inspec.yml. You can override that behavior with `rake changelog to=1.2.0`
33+
begin
34+
require 'yaml'
35+
metadata = YAML.load_file('inspec.yml')
36+
v = ENV['to'] || metadata['version']
37+
puts " * Generating changelog for version #{v}"
38+
require 'github_changelog_generator/task'
39+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
40+
config.future_release = v
41+
config.user = 'dev-sec'
42+
config.project = 'ssl-baseline'
43+
end
44+
Rake::Task[:changelog].execute
45+
rescue LoadError
46+
puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
3947
end
40-
rescue LoadError
41-
puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
4248
end

controls/ssl_test.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
#
31
# Licensed under the Apache License, Version 2.0 (the "License");
42
# you may not use this file except in compliance with the License.
53
# You may obtain a copy of the License at

inspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ maintainer: DevSec Hardening Framework Team
55
copyright: DevSec Hardening Framework Team & Chef Software Inc.
66
copyright_email: [email protected]
77
license: Apache-2.0
8-
version: 1.3.0
8+
version: 1.4.0
99
supports:
1010
- inspec_version: '>= 1.21.0'
1111
- os-family: unix

0 commit comments

Comments
 (0)