Skip to content

Commit ce68f8e

Browse files
authored
Separate audit workflow (#1333)
* Split bundle audit into separate workflow * Only run gem audit if Gemfile(.lock) was changed, or every Monday @ 9AM * Bump crass and msgpack
1 parent 1dadc9a commit ce68f8e

3 files changed

Lines changed: 31 additions & 4 deletions

File tree

.github/workflows/audit.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Gem audit
2+
3+
on:
4+
push:
5+
paths:
6+
- 'Gemfile*'
7+
pull_request:
8+
paths:
9+
- 'Gemfile*'
10+
schedule:
11+
- cron: '0 9 * * 1'
12+
timezone: 'Europe/London'
13+
14+
jobs:
15+
audit:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Install system dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install imagemagick
22+
- name: Check out code
23+
uses: actions/checkout@v6
24+
- name: Install Ruby & gems
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
bundler-cache: true
28+
- name: Audit gems
29+
run: bundle exec bundle-audit check --update

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,3 @@ jobs:
6464
run: bundle exec rails test
6565
- name: Run system tests
6666
run: bundle exec rails test:system
67-
- name: Audit gems
68-
run: bundle exec bundle-audit check --update

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ GEM
179179
countries (~> 5.0)
180180
crack (0.4.5)
181181
rexml
182-
crass (1.0.6)
182+
crass (1.0.7)
183183
csv (3.3.2)
184184
date (3.5.1)
185185
debug_inspector (1.1.0)
@@ -392,7 +392,7 @@ GEM
392392
monetize (~> 1.9)
393393
money (~> 6.13)
394394
railties (>= 3.0)
395-
msgpack (1.7.2)
395+
msgpack (1.8.3)
396396
multi_json (1.19.1)
397397
multi_xml (0.8.0)
398398
bigdecimal (>= 3.1, < 5)

0 commit comments

Comments
 (0)