Skip to content

Commit a047573

Browse files
authored
Merge pull request #45 from voxpupuli/update_bundler
fix: update bundler, fix cve in voxbox7
2 parents fd3d03f + 36620b1 commit a047573

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.github/workflows/build_container.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
RUBYGEM_PUPPET_METADATA=${{ matrix.rubygem_puppet_metadata }}
4545
RUBYGEM_MODULESYNC=${{ matrix.rubygem_modulesync }}
4646
RUBYGEM_RUBOCOP_PERFORMANCE=${{ matrix.rubygem_rubocop_performance }}
47+
RUBYGEM_BUNDLER=${{ matrix.rubygem_bundler }}
4748
build_arch: linux/amd64,linux/arm64
4849
docker_username: voxpupulibot
4950
docker_password: ${{ secrets.DOCKERHUB_BOT_PASSWORD }}

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
RUBYGEM_PUPPET_METADATA=${{ matrix.rubygem_puppet_metadata }}
5050
RUBYGEM_OVERCOMMIT=${{ matrix.rubygem_overcommit }}
5151
RUBYGEM_MODULESYNC=${{ matrix.rubygem_modulesync }}
52+
RUBYGEM_BUNDLER=${{ matrix.rubygem_bundler }}
5253
5354
- name: Login to Docker Hub
5455
uses: docker/login-action@v3

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ ENV RUBYGEM_RA10KE=${RUBYGEM_RA10KE:-3.1.0}
4141
ARG RUBYGEM_RUBOCOP_PERFORMANCE
4242
ENV RUBYGEM_RUBOCOP_PERFORMANCE=${RUBYGEM_RUBOCOP_PERFORMANCE:-1.21.1}
4343

44+
ARG RUBYGEM_BUNDLER
45+
ENV RUBYGEM_BUNDLER=${RUBYGEM_BUNDLER:-2.5.18}
46+
4447
COPY voxbox/Gemfile /
4548
COPY voxbox/Rakefile /
4649
COPY Dockerfile /
@@ -50,6 +53,9 @@ RUN apk update \
5053
&& apk add --no-cache --update alpine-sdk \
5154
&& apk add --no-cache --update yamllint \
5255
&& apk add --no-cache --update jq \
56+
&& rm -rf /usr/local/lib/ruby/gems/*/gems/bundler-* \
57+
&& rm -rf /usr/local/lib/ruby/gems/*/specifications/default/bundler-*.gemspec \
58+
&& gem install bundler -v ${RUBYGEM_BUNDLER} \
5359
&& bundle config set path.system true \
5460
&& bundle config set jobs $(nproc) \
5561
&& bundle install --gemfile=/Gemfile \

build_versions.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"rubygem_modulesync": "3.2.0",
1414
"rubygem_r10k": "4.1.0",
1515
"rubygem_ra10ke": "3.1.0",
16-
"rubygem_rubocop_performance": "1.21.1"
16+
"rubygem_rubocop_performance": "1.21.1",
17+
"rubygem_bundler": "2.4.22"
1718
},
1819
{
1920
"puppet_release": 8,
@@ -28,7 +29,8 @@
2829
"rubygem_modulesync": "3.2.0",
2930
"rubygem_r10k": "4.1.0",
3031
"rubygem_ra10ke": "3.1.0",
31-
"rubygem_rubocop_performance": "1.21.1"
32+
"rubygem_rubocop_performance": "1.21.1",
33+
"rubygem_bundler": "2.5.18"
3234
}
3335
]
3436
}

0 commit comments

Comments
 (0)