Skip to content

Commit 0bd26d0

Browse files
authored
Merge pull request #37 from github/jhongturney/gem-bumps-rexml-vuln
Gem bumps rexml vuln
2 parents 31501d0 + 3a4e369 commit 0bd26d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+159
-100
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Integration Tests
2+
on: [pull_request, workflow_dispatch]
3+
permissions:
4+
contents: read
5+
jobs:
6+
integration-4_10_4:
7+
name: Integration Tests (Puppet 4.10.4)
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Ruby
12+
uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
13+
- name: Install dependencies
14+
run: bundle install --jobs 4 --retry 3
15+
- name: Run Integration Tests
16+
run: |
17+
bundle exec rake octofacts:spec:octofacts_integration
18+
local_integration_rspec=$?
19+
if [ "$local_integration_rspec" -ne 0 ]; then
20+
exit 1
21+
else
22+
exit 0
23+
fi
24+
environment:
25+
RSPEC_PUPPET_VERSION="2.6.15"
26+
PUPPET_VERSION="4.10.4"
27+
integration-7_30_0:
28+
name: Integration Tests (Puppet 7.30.0)
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- name: Set up Ruby
33+
uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
34+
- name: Install dependencies
35+
run: bundle install --jobs 4 --retry 3
36+
- name: Run Integration Tests
37+
run: |
38+
bundle exec rake octofacts:spec:octofacts_integration
39+
local_integration_rspec=$?
40+
if [ "$local_integration_rspec" -ne 0 ]; then
41+
exit 1
42+
else
43+
exit 0
44+
fi
45+
environment:
46+
RSPEC_PUPPET_VERSION="3.0.0"
47+
PUPPET_VERSION="7.30.0"

.github/workflows/lint-and-test.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/lint.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Lint (Rubocop)
2+
on: [pull_request, workflow_dispatch]
3+
permissions:
4+
contents: read
5+
jobs:
6+
rubocop:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Setup Ruby
11+
uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
12+
- name: Install dependencies
13+
run: |
14+
bundle install --jobs 4 --retry 3
15+
- name: Lint with Rubocop
16+
run: |
17+
bundle exec rubocop --parallel

.github/workflows/spec-tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Spec Tests (Rspec)
2+
on: [pull_request, workflow_dispatch]
3+
permissions:
4+
contents: read
5+
jobs:
6+
octofacts-rspec:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
11+
- name: Install dependencies
12+
run: |
13+
bundle install --jobs 4 --retry 3
14+
- name: Test octofacts
15+
run: |
16+
bundle exec rake octofacts:spec:octofacts
17+
- name: Test octofacts_updater
18+
run: |
19+
bundle exec rake octofacts:spec:octofacts_updater

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.1
1+
0.6.0

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ group :development do
1414
gem "simplecov-json", "~> 0.2"
1515

1616
# Integration test
17-
gem "puppet", "~> #{ENV['PUPPET_VERSION'] || '6.25.1'}"
18-
gem "rspec-puppet", "~> #{ENV['RSPEC_PUPPET_VERSION'] || '2.6.2'}"
17+
gem "puppet", "~> #{ENV['PUPPET_VERSION'] || '7.30.0'}"
18+
gem "rspec-puppet", "~> #{ENV['RSPEC_PUPPET_VERSION'] || '3.0.0'}"
1919
end

Gemfile.lock

Lines changed: 63 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PATH
22
remote: .
33
specs:
4-
octofacts (0.5.1)
5-
octofacts-updater (0.5.1)
4+
octofacts (0.6.0)
5+
octofacts-updater (0.6.0)
66
diffy (>= 3.1.0)
77
net-ssh (>= 2.9)
88
octocatalog-diff (>= 2.1.0)
@@ -11,141 +11,151 @@ PATH
1111
GEM
1212
remote: https://rubygems.org/
1313
specs:
14-
activesupport (7.1.3.2)
14+
activesupport (7.2.0)
1515
base64
1616
bigdecimal
17-
concurrent-ruby (~> 1.0, >= 1.0.2)
17+
concurrent-ruby (~> 1.0, >= 1.3.1)
1818
connection_pool (>= 2.2.5)
1919
drb
2020
i18n (>= 1.6, < 2)
21+
logger (>= 1.4.2)
2122
minitest (>= 5.1)
22-
mutex_m
23-
tzinfo (~> 2.0)
24-
addressable (2.8.6)
25-
public_suffix (>= 2.0.2, < 6.0)
23+
securerandom (>= 0.3)
24+
tzinfo (~> 2.0, >= 2.0.5)
25+
addressable (2.8.7)
26+
public_suffix (>= 2.0.2, < 7.0)
2627
ast (2.4.2)
2728
base64 (0.2.0)
28-
bigdecimal (3.1.7)
29+
bigdecimal (3.1.8)
2930
coderay (1.1.3)
30-
concurrent-ruby (1.2.3)
31+
concurrent-ruby (1.3.4)
3132
connection_pool (2.4.1)
33+
csv (3.3.0)
3234
deep_merge (1.2.2)
3335
diff-lcs (1.5.1)
3436
diffy (3.4.2)
35-
docile (1.4.0)
37+
docile (1.4.1)
3638
drb (2.2.1)
3739
facter (4.6.1)
3840
hocon (~> 1.3)
3941
thor (>= 1.0.1, < 2.0)
40-
faraday (2.8.1)
41-
base64
42-
faraday-net_http (>= 2.0, < 3.1)
43-
ruby2_keywords (>= 0.0.4)
44-
faraday-net_http (3.0.2)
45-
fast_gettext (1.8.0)
46-
hashdiff (1.1.0)
42+
faraday (2.10.1)
43+
faraday-net_http (>= 2.0, < 3.2)
44+
logger
45+
faraday-net_http (3.1.1)
46+
net-http
47+
fast_gettext (2.4.0)
48+
prime
49+
forwardable (1.3.3)
50+
hashdiff (1.1.1)
4751
hiera (3.12.0)
4852
hocon (1.4.0)
49-
httparty (0.21.0)
53+
httparty (0.22.0)
54+
csv
5055
mini_mime (>= 1.0.0)
5156
multi_xml (>= 0.5.2)
52-
httpclient (2.8.3)
53-
i18n (1.14.4)
57+
i18n (1.14.5)
5458
concurrent-ruby (~> 1.0)
55-
json (2.7.1)
59+
json (2.7.2)
5660
language_server-protocol (3.17.0.3)
5761
locale (2.1.4)
58-
method_source (1.0.0)
62+
logger (1.6.0)
63+
method_source (1.1.0)
5964
mini_mime (1.1.5)
60-
minitest (5.22.3)
65+
minitest (5.24.1)
6166
multi_json (1.15.0)
62-
multi_xml (0.6.0)
63-
mutex_m (0.2.0)
64-
net-ssh (7.2.1)
67+
multi_xml (0.7.1)
68+
bigdecimal (~> 3.1)
69+
net-http (0.4.1)
70+
uri
71+
net-ssh (7.2.3)
6572
octocatalog-diff (2.1.0)
6673
diffy (>= 3.1.0)
6774
hashdiff (>= 0.3.0)
6875
httparty (>= 0.11.0)
6976
parallel (>= 1.12.0)
7077
rugged (>= 0.25.0b2)
71-
octokit (8.1.0)
72-
base64
78+
octokit (9.1.0)
7379
faraday (>= 1, < 3)
7480
sawyer (~> 0.9)
7581
parallel (1.12.0)
76-
parser (3.3.0.5)
82+
parser (3.3.4.2)
7783
ast (~> 2.4.1)
7884
racc
85+
prime (0.1.2)
86+
forwardable
87+
singleton
7988
pry (0.14.2)
8089
coderay (~> 1.1)
8190
method_source (~> 1.0)
82-
public_suffix (5.0.4)
83-
puppet (6.25.1)
91+
public_suffix (6.0.1)
92+
puppet (7.30.0)
8493
concurrent-ruby (~> 1.0)
8594
deep_merge (~> 1.0)
8695
facter (> 2.0.1, < 5)
87-
fast_gettext (~> 1.1)
96+
fast_gettext (>= 1.1, < 3)
8897
hiera (>= 3.2.1, < 4)
89-
httpclient (~> 2.8)
9098
locale (~> 2.1)
9199
multi_json (~> 1.10)
92100
puppet-resource_api (~> 1.5)
101+
scanf (~> 1.0)
93102
semantic_puppet (~> 1.0)
94103
puppet-resource_api (1.9.0)
95104
hocon (>= 1.0)
96-
racc (1.7.3)
97-
rack (3.0.10)
105+
racc (1.8.1)
106+
rack (3.1.7)
98107
rainbow (3.1.1)
99108
rake (12.3.3)
100-
regexp_parser (2.9.0)
101-
rexml (3.3.0)
109+
regexp_parser (2.9.2)
110+
rexml (3.3.5)
102111
strscan
103112
rspec (3.13.0)
104113
rspec-core (~> 3.13.0)
105114
rspec-expectations (~> 3.13.0)
106115
rspec-mocks (~> 3.13.0)
107116
rspec-core (3.13.0)
108117
rspec-support (~> 3.13.0)
109-
rspec-expectations (3.13.0)
118+
rspec-expectations (3.13.1)
110119
diff-lcs (>= 1.2.0, < 2.0)
111120
rspec-support (~> 3.13.0)
112-
rspec-mocks (3.13.0)
121+
rspec-mocks (3.13.1)
113122
diff-lcs (>= 1.2.0, < 2.0)
114123
rspec-support (~> 3.13.0)
115-
rspec-puppet (2.6.15)
124+
rspec-puppet (3.0.0)
116125
rspec
117126
rspec-support (3.13.1)
118-
rubocop (1.62.1)
127+
rubocop (1.65.1)
119128
json (~> 2.3)
120129
language_server-protocol (>= 3.17.0)
121130
parallel (~> 1.10)
122131
parser (>= 3.3.0.2)
123132
rainbow (>= 2.2.2, < 4.0)
124-
regexp_parser (>= 1.8, < 3.0)
133+
regexp_parser (>= 2.4, < 3.0)
125134
rexml (>= 3.2.5, < 4.0)
126135
rubocop-ast (>= 1.31.1, < 2.0)
127136
ruby-progressbar (~> 1.7)
128137
unicode-display_width (>= 2.4.0, < 3.0)
129-
rubocop-ast (1.31.2)
130-
parser (>= 3.3.0.4)
138+
rubocop-ast (1.32.0)
139+
parser (>= 3.3.1.0)
131140
rubocop-github (0.20.0)
132141
rubocop (>= 1.37)
133142
rubocop-performance (>= 1.15)
134143
rubocop-rails (>= 2.17)
135-
rubocop-performance (1.20.2)
144+
rubocop-performance (1.21.1)
136145
rubocop (>= 1.48.1, < 2.0)
137-
rubocop-ast (>= 1.30.0, < 2.0)
138-
rubocop-rails (2.24.0)
146+
rubocop-ast (>= 1.31.1, < 2.0)
147+
rubocop-rails (2.25.1)
139148
activesupport (>= 4.2.0)
140149
rack (>= 1.1)
141150
rubocop (>= 1.33.0, < 2.0)
142151
rubocop-ast (>= 1.31.1, < 2.0)
143152
ruby-progressbar (1.13.0)
144-
ruby2_keywords (0.0.5)
145153
rugged (1.7.2)
146154
sawyer (0.9.2)
147155
addressable (>= 2.3.5)
148156
faraday (>= 0.17.3, < 3)
157+
scanf (1.0.0)
158+
securerandom (0.3.1)
149159
semantic_puppet (1.1.0)
150160
simplecov (0.22.0)
151161
docile (~> 1.1)
@@ -156,11 +166,13 @@ GEM
156166
json
157167
simplecov
158168
simplecov_json_formatter (0.1.4)
169+
singleton (0.2.0)
159170
strscan (3.1.0)
160171
thor (1.3.1)
161172
tzinfo (2.0.6)
162173
concurrent-ruby (~> 1.0)
163174
unicode-display_width (2.5.0)
175+
uri (0.13.0)
164176

165177
PLATFORMS
166178
ruby
@@ -170,9 +182,9 @@ DEPENDENCIES
170182
octofacts-updater!
171183
parallel (= 1.12.0)
172184
pry (~> 0.14)
173-
puppet (~> 6.25.1)
185+
puppet (~> 7.30.0)
174186
rake (~> 12.3)
175-
rspec-puppet (~> 2.6.2)
187+
rspec-puppet (~> 3.0.0)
176188
rubocop-github (~> 0.20.0)
177189
simplecov (>= 0.14.1)
178190
simplecov-json (~> 0.2)

octofacts-updater.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ EOS
2222
].flatten
2323
spec.require_paths = ["lib"]
2424

25-
spec.required_ruby_version = ">= 2.5.0"
25+
spec.required_ruby_version = ">= 2.7.0"
2626
spec.add_dependency "diffy", ">= 3.1.0"
2727
spec.add_dependency "octocatalog-diff", ">= 2.1.0"
2828
spec.add_dependency "octokit", ">= 4.2.0"

octofacts.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ EOS
1717
spec.files = [Dir.glob("lib/octofacts/**/*.rb"), "lib/octofacts.rb", ".version"].flatten
1818
spec.require_paths = ["lib"]
1919

20-
spec.required_ruby_version = ">= 2.5.0"
20+
spec.required_ruby_version = ">= 2.7.0"
2121
end

0 commit comments

Comments
 (0)