inspec-core 7.1.7 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -3
- data/etc/deprecations.json +5 -2
- data/etc/env.default.sh +8 -0
- data/etc/reference-repos.txt +2 -0
- data/inspec-core.gemspec +1 -1
- data/lib/inspec/resources/package.rb +9 -2
- data/lib/inspec/version.rb +1 -1
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/cli.rb +4 -0
- data/lib/source_readers/gem.rb +5 -1
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed63ed9529571a4192cc3d69253bb303cddb5f6c07dd7f6c5009846e20fc2d74
|
|
4
|
+
data.tar.gz: e3f693766b0698bba07fc6ae2e823a51993484d88cd5f309dd83b6dd832a55d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c0bc69773b1376970e84b073b556731af530f4706779f5c5ccf3807a6ca5ba4e55a747f08581bb001ed796468108b0080df8197f8484d7a43594d3c4410e3c2
|
|
7
|
+
data.tar.gz: ee83f8a1efd8aca287f1c9fb426083cc1245f1174252747a1a88cb8c6c488d939b2797c415498a54bb4297249ca09ae43618f0a02e55c5fe7dcfee18cf821148
|
data/Gemfile
CHANGED
|
@@ -43,9 +43,7 @@ group :test do
|
|
|
43
43
|
gem "m"
|
|
44
44
|
gem "minitest-sprint", "~> 1.0"
|
|
45
45
|
gem "minitest"
|
|
46
|
-
# Ruby 3.4+ extracts minitest-mock to a separate gem (bundled gem)
|
|
47
|
-
# Adding unconditionally as it's compatible with all Ruby versions
|
|
48
|
-
gem "minitest-mock"
|
|
46
|
+
gem "minitest-mock" # Ruby 3.4+ extracts minitest-mock to a separate gem (bundled gem). It's compatible with all Ruby versions.
|
|
49
47
|
gem "mocha"
|
|
50
48
|
gem "nokogiri"
|
|
51
49
|
gem "pry-byebug"
|
data/etc/deprecations.json
CHANGED
|
@@ -130,6 +130,9 @@
|
|
|
130
130
|
"renamed_to_inspec_export":{
|
|
131
131
|
"action": "ignore",
|
|
132
132
|
"prefix": "The `inspec json` command is deprecated in InSpec 5 and replaced with `inspec export` command."
|
|
133
|
+
},
|
|
134
|
+
"cli_option_compliance_overwrite": {
|
|
135
|
+
"action": "warn"
|
|
133
136
|
}
|
|
134
137
|
},
|
|
135
138
|
"fallback_resource_packs":{
|
|
@@ -141,7 +144,7 @@
|
|
|
141
144
|
"gem":"inspec-elasticsearch-resources",
|
|
142
145
|
"message":"The `inspec-elasticsearch-resources` allows testing of elasticsearch using Inspec."
|
|
143
146
|
},
|
|
144
|
-
"docker
|
|
147
|
+
"docker.*":{
|
|
145
148
|
"gem": "inspec-docker-resources",
|
|
146
149
|
"message": "The Inspec docker resources are moved out of InSpec core and will be installed as gem"
|
|
147
150
|
},
|
|
@@ -157,7 +160,7 @@
|
|
|
157
160
|
"gem": "inspec-opa-resources",
|
|
158
161
|
"message": "The Inspec opa resources are moved out of InSpec core and will be installed as gem"
|
|
159
162
|
},
|
|
160
|
-
"podman
|
|
163
|
+
"podman.*":{
|
|
161
164
|
"gem": "inspec-podman-resources",
|
|
162
165
|
"message": "The Inspec podman resources are moved out of InSpec core and will be installed as gem"
|
|
163
166
|
},
|
data/etc/env.default.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Default environment variables for InSpec development
|
|
4
|
+
# Copy this file to etc/env.sh and uncomment/customize values as needed
|
|
5
|
+
# NEVER commit etc/env.sh to git
|
|
6
|
+
|
|
7
|
+
# The GitHub repo path for shared-context with optional branch specification
|
|
8
|
+
# export PROGRESS_SHARED_CONTEXT_REPO="progress-infra-poc/shared-context@main"
|
data/inspec-core.gemspec
CHANGED
|
@@ -68,7 +68,7 @@ Source code obtained from the Chef GitHub repository is made available under Apa
|
|
|
68
68
|
# which was causing a LoadError ('cannot load such file -- ast') for users/applications using 'inspec-core'.
|
|
69
69
|
spec.add_dependency "cookstyle"
|
|
70
70
|
|
|
71
|
-
spec.add_dependency "train-core", "~> 3.16", ">= 3.16.
|
|
71
|
+
spec.add_dependency "train-core", "~> 3.16", ">= 3.16.5"
|
|
72
72
|
# Minimum major version 1 is required for Chef licensing telemetry
|
|
73
73
|
spec.add_dependency "chef-licensing", ">= 1.2.0"
|
|
74
74
|
end
|
|
@@ -376,8 +376,15 @@ module Inspec::Resources
|
|
|
376
376
|
'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*',
|
|
377
377
|
]
|
|
378
378
|
|
|
379
|
-
#
|
|
380
|
-
|
|
379
|
+
# Add WOW6432Node paths for 32-bit apps on 64-bit Windows.
|
|
380
|
+
# Include these unless the system is explicitly 32-bit (i386) — on 32-bit
|
|
381
|
+
# Windows, WOW6432Node does not exist since all apps register under the
|
|
382
|
+
# main Uninstall key.
|
|
383
|
+
# When os.arch is nil (e.g., train falls back to read_cmd_os in a PowerShell
|
|
384
|
+
# WinRM session where %PROCESSOR_ARCHITECTURE% is not expanded), we still
|
|
385
|
+
# include the WOW6432Node paths since virtually all modern Windows systems
|
|
386
|
+
# are 64-bit.
|
|
387
|
+
unless inspec.os.arch == "i386"
|
|
381
388
|
search_paths << 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
|
|
382
389
|
search_paths << 'HKCU:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
|
|
383
390
|
end
|
data/lib/inspec/version.rb
CHANGED
|
@@ -140,6 +140,10 @@ module InspecPlugins
|
|
|
140
140
|
desc: "Enable legacy functionality, activating both legacy export and legacy check."
|
|
141
141
|
def upload(path) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
|
|
142
142
|
Inspec.with_feature("inspec-cli-compliance-upload") {
|
|
143
|
+
if options["overwrite"]
|
|
144
|
+
Inspec.deprecate(:cli_option_compliance_overwrite, "The --overwrite option is deprecated because it does not work with Automate as expected.")
|
|
145
|
+
end
|
|
146
|
+
|
|
143
147
|
config = InspecPlugins::Compliance::Configuration.new
|
|
144
148
|
return unless loggedin(config)
|
|
145
149
|
|
data/lib/source_readers/gem.rb
CHANGED
|
@@ -7,7 +7,11 @@ module SourceReaders
|
|
|
7
7
|
priority 20
|
|
8
8
|
|
|
9
9
|
def self.resolve(target)
|
|
10
|
-
|
|
10
|
+
# Only match if gemspec is at root level, not in vendor directories
|
|
11
|
+
# This prevents archived/vendored profiles from being treated as gem profiles
|
|
12
|
+
gemspec_files = target.files.grep(/gemspec/)
|
|
13
|
+
root_gemspec = gemspec_files.reject { |f| f.start_with?("vendor/") }
|
|
14
|
+
return new(target) unless root_gemspec.empty?
|
|
11
15
|
|
|
12
16
|
nil
|
|
13
17
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inspec-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.1
|
|
4
|
+
version: 7.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chef InSpec Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-08-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: chef-telemetry
|
|
@@ -441,7 +441,7 @@ dependencies:
|
|
|
441
441
|
version: '3.16'
|
|
442
442
|
- - ">="
|
|
443
443
|
- !ruby/object:Gem::Version
|
|
444
|
-
version: 3.16.
|
|
444
|
+
version: 3.16.5
|
|
445
445
|
type: :runtime
|
|
446
446
|
prerelease: false
|
|
447
447
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -451,7 +451,7 @@ dependencies:
|
|
|
451
451
|
version: '3.16'
|
|
452
452
|
- - ">="
|
|
453
453
|
- !ruby/object:Gem::Version
|
|
454
|
-
version: 3.16.
|
|
454
|
+
version: 3.16.5
|
|
455
455
|
- !ruby/object:Gem::Dependency
|
|
456
456
|
name: chef-licensing
|
|
457
457
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -484,10 +484,12 @@ files:
|
|
|
484
484
|
- Gemfile
|
|
485
485
|
- LICENSE
|
|
486
486
|
- etc/deprecations.json
|
|
487
|
+
- etc/env.default.sh
|
|
487
488
|
- etc/features.sig
|
|
488
489
|
- etc/features.yaml
|
|
489
490
|
- etc/keys/progress-2022-05-04.pem.pub
|
|
490
491
|
- etc/plugin_filters.json
|
|
492
|
+
- etc/reference-repos.txt
|
|
491
493
|
- inspec-core.gemspec
|
|
492
494
|
- lib/bundles/README.md
|
|
493
495
|
- lib/bundles/inspec-compliance/api.rb
|