Skip to content

Commit 4211fef

Browse files
authored
Merge branch 'staging' into renovate/major-ruby-on-rails-packages
2 parents e829eb6 + bfcc364 commit 4211fef

Some content is hidden

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

46 files changed

+351
-196
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ POSTGRES_PASSWORD=<password>
1111
HOST=csvalpha.nl
1212

1313
NGROK_HOST=<subdomain>.ngrok.io
14+
15+
NOREPLY_EMAIL=no-reply@development.csvalpha.nl
16+
ICT_EMAIL=ict@development.csvalpha.nl
17+
PRIVACY_EMAIL=privacy@development.csvalpha.nl
18+
MAILADMIN_EMAIL=mailbeheer@development.csvalpha.nl

.github/workflows/continuous-delivery.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
docker-compose up -d
166166
167167
- name: Finalize Sentry release
168-
uses: getsentry/action-release@e769183448303de84c5a06aaaddf9da7be26d6c7 # v1.7.0
168+
uses: getsentry/action-release@ffb64465339ef6fb868e2fc261318d78ae0ed8d9 # v1.10.5
169169
env:
170170
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
171171
SENTRY_ORG: ${{ vars.SENTRY_ORG_NAME }}
@@ -190,6 +190,8 @@ jobs:
190190
runs-on: ubuntu-latest
191191
needs: [branch_check, metadata, merge, continuous_integration, publish_image, deploy]
192192
if: (github.ref_name == 'staging' || github.ref_name == 'master') && always()
193+
permissions:
194+
checks: write
193195
steps:
194196
- name: Get conclusion
195197
id: get_conclusion
@@ -205,11 +207,10 @@ jobs:
205207
done
206208
207209
- name: Update Continuous Delivery check run
208-
uses: guidojw/actions/update-check-run@ec8c080252c6b8903a4431211b78c543609f5f89 # v1.4.6
210+
uses: LouisBrunner/checks-action@6b626ffbad7cc56fd58627f774b9067e6118af23 # v2.0.0
209211
with:
210-
app_id: ${{ vars.GH_APP_ID }}
211-
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
212212
sha: ${{ needs.merge.outputs.sha }}
213+
token: ${{ github.token }}
213214
name: Continuous Delivery
214215
conclusion: ${{ steps.get_conclusion.outputs.conclusion }}
215216
details_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

.github/workflows/continuous-integration.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
ref: ${{ inputs.sha }}
3232

3333
- name: Build test image
34-
uses: guidojw/actions/build-docker-image@ec8c080252c6b8903a4431211b78c543609f5f89 # v1.4.6
34+
uses: guidojw/actions/build-docker-image@3ad963828827110a6b716a011f242bf01fdf1db4 # v1.4.7
3535
with:
3636
file: Dockerfile
3737
build-args: |
@@ -68,10 +68,10 @@ jobs:
6868
6969
- name: Download actionlint
7070
run: |
71-
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.6.26
71+
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.7.7
7272
7373
- name: Load test image
74-
uses: guidojw/actions/load-docker-image@ec8c080252c6b8903a4431211b78c543609f5f89 # v1.4.6
74+
uses: guidojw/actions/load-docker-image@3ad963828827110a6b716a011f242bf01fdf1db4 # v1.4.7
7575
with:
7676
name: app
7777

@@ -80,8 +80,8 @@ jobs:
8080
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
8181
run: |
8282
EXIT_STATUS=0
83-
./actionlint -ignore 'property "gh_app_private_key" is not defined' -ignore 'SC2153:' \
84-
-ignore 'property "sha" is not defined in object type {}' || EXIT_STATUS=$?
83+
./actionlint -ignore 'SC2153:' -ignore 'property "sha" is not defined in object type {}' || \
84+
EXIT_STATUS=$?
8585
docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_HOST=localhost -e \
8686
RAILS_MASTER_KEY --network=host app bin/ci.sh lint || EXIT_STATUS=$?
8787
exit $EXIT_STATUS
@@ -114,7 +114,7 @@ jobs:
114114
echo '::add-matcher::.github/problem-matchers/rspec.json'
115115
116116
- name: Load test image
117-
uses: guidojw/actions/load-docker-image@ec8c080252c6b8903a4431211b78c543609f5f89 # v1.4.6
117+
uses: guidojw/actions/load-docker-image@3ad963828827110a6b716a011f242bf01fdf1db4 # v1.4.7
118118
with:
119119
name: app
120120

@@ -128,14 +128,14 @@ jobs:
128128
129129
- name: Upload coverage report to Codecov
130130
if: ${{ !cancelled() }}
131-
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
131+
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
132132
with:
133133
fail_ci_if_error: true
134134
token: ${{ secrets.CODECOV_TOKEN }}
135135

136136
- name: Upload coverage report artifact
137137
if: ${{ !cancelled() }}
138-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
138+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
139139
with:
140140
name: coverage
141141
path: coverage/

.github/workflows/publish-image.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
fetch-depth: 0
5555

5656
- name: Set up Docker Buildx
57-
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
57+
uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
5858

5959
- name: Login to GitHub Container Registry
6060
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
@@ -64,7 +64,7 @@ jobs:
6464
password: ${{ secrets.GITHUB_TOKEN }}
6565

6666
- name: Build and push image
67-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
67+
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
6868
with:
6969
push: true
7070
context: .
@@ -77,7 +77,7 @@ jobs:
7777
7878
- name: Create Sentry release
7979
if: ${{ !(github.event_name == 'workflow_dispatch' && github.workflow == 'Publish Image') }}
80-
uses: getsentry/action-release@e769183448303de84c5a06aaaddf9da7be26d6c7 # v1.7.0
80+
uses: getsentry/action-release@ffb64465339ef6fb868e2fc261318d78ae0ed8d9 # v1.10.5
8181
env:
8282
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
8383
SENTRY_ORG: ${{ vars.SENTRY_ORG_NAME }}
@@ -91,6 +91,8 @@ jobs:
9191
runs-on: ubuntu-latest
9292
needs: [metadata, publish]
9393
if: github.event_name == 'workflow_dispatch' && github.workflow == 'Publish Image' && always()
94+
permissions:
95+
checks: write
9496
steps:
9597
- name: Get conclusion
9698
id: get_conclusion
@@ -106,10 +108,9 @@ jobs:
106108
done
107109
108110
- name: Update Publish Image check run
109-
uses: guidojw/actions/update-check-run@ec8c080252c6b8903a4431211b78c543609f5f89 # v1.4.6
111+
uses: LouisBrunner/checks-action@6b626ffbad7cc56fd58627f774b9067e6118af23 # v2.0.0
110112
with:
111-
app_id: ${{ vars.GH_APP_ID }}
112-
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
113+
token: ${{ github.token }}
113114
name: Publish Image
114115
conclusion: ${{ steps.get_conclusion.outputs.conclusion }}
115116
details_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

.rubocop.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ require:
44
- rubocop-rails
55

66
AllCops:
7-
TargetRailsVersion: 5.1
7+
TargetRailsVersion: 7.0
8+
TargetRubyVersion: 3.1
89
Exclude:
910
- 'db/schema.rb'
1011
- 'config/initializers/secret_token.rb'
@@ -124,9 +125,11 @@ Style/HashTransformValues:
124125
Lint/RaiseException:
125126
Enabled: true
126127

127-
128128
Lint/StructNewOverride:
129129
Enabled: true
130130

131131
Naming/InclusiveLanguage:
132132
Enabled: false
133+
134+
Rails/BulkChangeTable:
135+
Enabled: false

Gemfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
source 'https://rubygems.org'
22

3-
gem 'active_model_otp', git: 'https://github.com/heapsource/active_model_otp.git', ref: '6ed9927'
43
gem 'dav4rack', git: 'https://github.com/csvalpha/dav4rack.git', ref: '8541e53'
54

5+
gem 'active_model_otp', '~> 2.3'
66
gem 'bcrypt', '~> 3.1', '>= 3.1.20'
77
gem 'bootsnap', '~> 1.18', '>= 1.18.4'
8-
gem 'carrierwave', '~> 2.1'
8+
gem 'carrierwave', '~> 3.1', '>= 3.1.1'
99
gem 'carrierwave-base64', '~> 2.11'
1010
gem 'carrierwave-bombshelter', '~> 0.2', '>= 0.2.2'
1111
gem 'case_transform', '~> 0.2'
12+
gem 'concurrent-ruby', '1.3.4' # can be removed when we upgrade to rails 7.1 https://www.devgem.io/posts/resolving-the-loggerthreadsafelevel-error-in-rails-after-bundle-update
1213
gem 'counter_culture', '~> 3.8', '>= 3.8.2'
1314
gem 'dav4rack_ext', '~> 1.0'
14-
gem 'doorkeeper', '~> 5.2'
15+
gem 'doorkeeper', '~> 5.8', '>= 5.8.1'
1516
gem 'doorkeeper-i18n', '~> 5.2', '>= 5.2.7'
1617
gem 'exifr', '~> 1.4'
1718
gem 'friendly_id', '~> 5.5', '>= 5.5.1'
@@ -23,24 +24,24 @@ gem 'isbn_validation', '~> 1.2', '>= 1.2.2'
2324
gem 'jsonapi-authorization', '~> 3.0', '>= 3.0.2'
2425
gem 'jsonapi-resources', '~> 0.9.1'
2526
gem 'message_bus', '~> 4.3', '>= 4.3.8'
26-
gem 'mini_magick', '~> 4.13', '>= 4.13.2'
27-
gem 'paper_trail', '~> 14.0'
27+
gem 'mini_magick', '~> 5.1'
28+
gem 'paper_trail', '~> 16.0'
2829
gem 'paranoia', '~> 3.0'
2930
gem 'pg', '~> 1.5', '>= 1.5.9'
3031
gem 'phonelib'
31-
gem 'puma', '~> 6.0'
32+
gem 'puma', '~> 6.5'
3233
gem 'pundit', '~> 2.4'
3334
gem 'rack-attack', '~> 6.7'
3435
gem 'rack-cors', '~> 2.0', '>= 2.0.2', require: 'rack/cors'
3536
gem 'rails', '~> 8.0', '>= 8.0.1'
3637
gem 'rails-i18n', '~> 8.0', '>= 8.0.0'
37-
gem 'redis', '~> 4.8', '>= 4.8.1'
38+
gem 'redis', '~> 5.3'
3839
gem 'roo', '~> 2.10', '>= 2.10.1'
3940
gem 'ruby-filemagic', '~> 0.7', '>= 0.7.3'
4041
gem 'rubyzip', '~> 2.3', '>= 2.3.2'
4142
gem 'sentry-raven', '~> 3.1', '>= 3.1.2'
4243
gem 'sepa_king', '~> 0.14'
43-
gem 'sidekiq', '~> 6.5', '>= 6.5.12'
44+
gem 'sidekiq', '~> 7.3', '>= 7.3.7'
4445
gem 'sidekiq-scheduler', '~> 5.0', '>= 5.0.6'
4546
gem 'slack-notifier', '~> 2.4'
4647
gem 'validates_timeliness', '~> 8.0.0'

0 commit comments

Comments
 (0)