abide_dev_utils 0.18.8 → 0.18.10
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/.github/workflows/mend_ruby.yaml +44 -34
- data/Gemfile.lock +3 -3
- data/abide_dev_utils.gemspec +1 -1
- data/lib/abide_dev_utils/sce/generate/reference.rb +29 -6
- data/lib/abide_dev_utils/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f14857c239b6b8f8b9ce26ecb9519c43d803564febf9a0f489b4b2d96d4fce3f
|
|
4
|
+
data.tar.gz: 8fb4e2576b7b032e1bfacf7be18d66139fb1440d174dbf759a80df20f3810683
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d6a36b6b21440ec305d869ea0606b0450e95de5e118a3995d068e65113f11f67c2a431a0ff5099675438d5ce7c6e720d8a1c22a6b1c161c72c5c385cfb923e9
|
|
7
|
+
data.tar.gz: 3c27abbe248db30f0dcdb3fe21c582ac65dd5dd7b6aa87cc10ed272c089ca9db126394c039584374a45d05c5321b57e546cb2f8c9fddfcb9e5b84a298a5e21ce
|
|
@@ -1,39 +1,49 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Mend Scan
|
|
2
|
+
run-name: 'Mend scan for ${{ github.ref_name }}'
|
|
3
|
+
|
|
2
4
|
on:
|
|
3
5
|
workflow_dispatch:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
schedule:
|
|
7
|
+
- cron: '0 10 * * *'
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
PUPPET_AUTH_TOKEN: ${{ secrets.PUPPET_AUTH_TOKEN }}
|
|
11
|
+
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_AUTH_TOKEN }}"
|
|
12
|
+
|
|
7
13
|
jobs:
|
|
8
|
-
|
|
14
|
+
scan:
|
|
9
15
|
runs-on: ubuntu-latest
|
|
10
16
|
steps:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
17
|
+
- name: Checkout repo
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 1
|
|
21
|
+
|
|
22
|
+
- name: Setup Ruby
|
|
23
|
+
uses: ruby/setup-ruby@v1
|
|
24
|
+
with:
|
|
25
|
+
ruby-version: '3.2'
|
|
26
|
+
|
|
27
|
+
- name: Generate Gemfile.lock
|
|
28
|
+
run: bundle lock
|
|
29
|
+
|
|
30
|
+
- name: Setup Java
|
|
31
|
+
uses: actions/setup-java@v4
|
|
32
|
+
with:
|
|
33
|
+
distribution: 'temurin'
|
|
34
|
+
java-version: '17'
|
|
35
|
+
|
|
36
|
+
- name: Download Mend unified agent
|
|
37
|
+
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
|
|
38
|
+
|
|
39
|
+
- name: Run Mend scan
|
|
40
|
+
run: java -jar wss-unified-agent.jar
|
|
41
|
+
env:
|
|
42
|
+
WS_FILESYSTEMSCAN: false
|
|
43
|
+
WS_CHECKPOLICIES: true
|
|
44
|
+
WS_FORCEUPDATE: true
|
|
45
|
+
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
|
|
46
|
+
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
|
|
47
|
+
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
|
|
48
|
+
WS_PRODUCTNAME: SCE
|
|
49
|
+
WS_PROJECTNAME: ${{ github.event.repository.name }}
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
abide_dev_utils (0.18.
|
|
4
|
+
abide_dev_utils (0.18.10)
|
|
5
5
|
cmdparse (~> 3.0)
|
|
6
6
|
facterdb (~> 4.1.0)
|
|
7
7
|
google-cloud-storage (~> 1.34)
|
|
@@ -9,7 +9,7 @@ PATH
|
|
|
9
9
|
jira-ruby (~> 2.2)
|
|
10
10
|
metadata-json-lint (~> 4.0)
|
|
11
11
|
nokogiri (~> 1.13)
|
|
12
|
-
puppet-lint (~>
|
|
12
|
+
puppet-lint (~> 5.0)
|
|
13
13
|
puppet-strings (>= 2.7)
|
|
14
14
|
ruby-progressbar (~> 1.11)
|
|
15
15
|
selenium-webdriver (~> 4.0.0.beta4)
|
|
@@ -255,7 +255,7 @@ GEM
|
|
|
255
255
|
coderay (~> 1.1)
|
|
256
256
|
method_source (~> 1.0)
|
|
257
257
|
public_suffix (6.0.1)
|
|
258
|
-
puppet-lint (
|
|
258
|
+
puppet-lint (5.1.1)
|
|
259
259
|
puppet-resource_api (1.9.0)
|
|
260
260
|
hocon (>= 1.0)
|
|
261
261
|
puppet-strings (4.1.3)
|
data/abide_dev_utils.gemspec
CHANGED
|
@@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
|
|
|
41
41
|
spec.add_dependency 'selenium-webdriver', '~> 4.0.0.beta4'
|
|
42
42
|
spec.add_dependency 'google-cloud-storage', '~> 1.34'
|
|
43
43
|
spec.add_dependency 'hashdiff', '~> 1.0'
|
|
44
|
-
spec.add_dependency 'puppet-lint', '~>
|
|
44
|
+
spec.add_dependency 'puppet-lint', '~> 5.0'
|
|
45
45
|
spec.add_dependency 'facterdb', '~> 4.1.0'
|
|
46
46
|
spec.add_dependency 'metadata-json-lint', '~> 4.0'
|
|
47
47
|
|
|
@@ -324,7 +324,9 @@ module AbideDevUtils
|
|
|
324
324
|
@control_data[ctrl_param[:name]][:default] = ctrl_param[:default] || rsrc_param&.value
|
|
325
325
|
return unless @control_data[ctrl_param[:name]][:default]
|
|
326
326
|
|
|
327
|
-
|
|
327
|
+
default = @control_data[ctrl_param[:name]][:default]
|
|
328
|
+
default_str = [Hash, Array].any? { |t| default.is_a?(t) } ? @formatter.yaml_flow(default) : default
|
|
329
|
+
" - #{@md.italic('Default:')} #{@md.code(default_str)}"
|
|
328
330
|
end
|
|
329
331
|
|
|
330
332
|
def param_description(ctrl_param)
|
|
@@ -467,18 +469,39 @@ module AbideDevUtils
|
|
|
467
469
|
end
|
|
468
470
|
end
|
|
469
471
|
|
|
470
|
-
# Escapes and quotes a string.
|
|
471
|
-
#
|
|
472
|
-
# @
|
|
473
|
-
# @return [
|
|
472
|
+
# Escapes and quotes a string. Hash and Array values are formatted as
|
|
473
|
+
# YAML flow-style so they produce valid YAML when embedded in a code block.
|
|
474
|
+
# @param value [Any] the value to quote.
|
|
475
|
+
# @return [String] the quoted/formatted value.
|
|
474
476
|
def self.quote(value)
|
|
475
|
-
|
|
477
|
+
case value
|
|
478
|
+
when String
|
|
476
479
|
value.inspect
|
|
480
|
+
when Hash, Array
|
|
481
|
+
yaml_flow(value)
|
|
477
482
|
else
|
|
478
483
|
value
|
|
479
484
|
end
|
|
480
485
|
end
|
|
481
486
|
|
|
487
|
+
# Recursively formats a Hash or Array as a YAML flow-style scalar so it
|
|
488
|
+
# can be embedded inline in a YAML code block without Ruby hash-rocket syntax.
|
|
489
|
+
# @param value [Any] the value to format.
|
|
490
|
+
# @return [String] the YAML flow-style representation.
|
|
491
|
+
def self.yaml_flow(value)
|
|
492
|
+
case value
|
|
493
|
+
when Hash
|
|
494
|
+
pairs = value.map { |k, v| "#{k}: #{yaml_flow(v)}" }.join(', ')
|
|
495
|
+
"{#{pairs}}"
|
|
496
|
+
when Array
|
|
497
|
+
"[#{value.map { |v| yaml_flow(v) }.join(', ')}]"
|
|
498
|
+
when String
|
|
499
|
+
value
|
|
500
|
+
else
|
|
501
|
+
value.to_s
|
|
502
|
+
end
|
|
503
|
+
end
|
|
504
|
+
|
|
482
505
|
# Checks if a value is considered undef.
|
|
483
506
|
# @param value [Any] the value to check.
|
|
484
507
|
# @return [Boolean] true if value is considered undef (nil or 'undef').
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: abide_dev_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.18.
|
|
4
|
+
version: 0.18.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- abide-team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -128,14 +128,14 @@ dependencies:
|
|
|
128
128
|
requirements:
|
|
129
129
|
- - "~>"
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: '
|
|
131
|
+
version: '5.0'
|
|
132
132
|
type: :runtime
|
|
133
133
|
prerelease: false
|
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
136
|
- - "~>"
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: '
|
|
138
|
+
version: '5.0'
|
|
139
139
|
- !ruby/object:Gem::Dependency
|
|
140
140
|
name: facterdb
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|