Skip to content

Commit 0b27858

Browse files
committed
Add better audit support for CI
1 parent 7df27fd commit 0b27858

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/master.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,14 @@ jobs:
195195
run: mix credo
196196
working-directory: .
197197

198-
- name: Mix audit
198+
- name: Hex audit
199199
run: mix hex.audit
200200
working-directory: .
201201

202+
- name: Deps audit
203+
run: mix deps.audit
204+
working-directory: .
205+
202206
- name: Mix dialyzer
203207
run: make dialyzer
204208

@@ -229,6 +233,10 @@ jobs:
229233
run: pnpm install --frozen-lockfile
230234
working-directory: ./apps/codebattle
231235

236+
- name: Frontend deps audit
237+
run: pnpm audit --audit-level high
238+
working-directory: ./apps/codebattle
239+
232240
- name: Frontend lint (JS + SCSS)
233241
run: pnpm run lint
234242
working-directory: ./apps/codebattle

.github/workflows/pr.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ jobs:
8484
run: mix credo --strict
8585
working-directory: .
8686

87+
- name: Hex audit
88+
run: mix hex.audit
89+
working-directory: .
90+
91+
- name: Deps audit
92+
run: mix deps.audit
93+
working-directory: .
94+
8795
- name: Mix dialyzer
8896
run: make dialyzer
8997

@@ -105,6 +113,10 @@ jobs:
105113
run: pnpm install --frozen-lockfile
106114
working-directory: ./apps/codebattle
107115

116+
- name: Frontend deps audit
117+
run: pnpm audit --audit-level high
118+
working-directory: ./apps/codebattle
119+
108120
- name: Oxlint
109121
run: pnpm lint
110122
working-directory: ./apps/codebattle

0 commit comments

Comments
 (0)