Skip to content

Commit f8e8ecf

Browse files
BrainSlugs83Copilot
andcommitted
Add npm audit gate to CI and publish workflows
Fails the pipeline if production dependencies have known vulnerabilities. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4480d0a commit f8e8ecf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
- run: npm ci
21+
- run: npm audit --omit=dev
2122
# Node 22+ supports coverage thresholds; Node 20 runs tests only
2223
- name: Lint + test with 100% coverage
2324
if: matrix.node-version >= 22

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424

2525
- run: npm install -g npm@latest
2626
- run: npm ci
27+
- run: npm audit --omit=dev
2728

2829
# Bump package.json to the requested version
2930
- name: Set version

0 commit comments

Comments
 (0)