Skip to content

Commit 01c52a0

Browse files
authored
chore: Enforce strict peer deps to catch bad dependabot PRs (#88)
1 parent 14925cc commit 01c52a0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: 📥 Checkout repository
28-
uses: actions/checkout@900f2210b1d28bbbd0bd22d17926b9e224e8f231 # main
28+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # main
2929
with:
3030
persist-credentials: false
3131

@@ -51,7 +51,7 @@ jobs:
5151
- name: 🔍 Install dependencies
5252
if: steps.cache-node_modules.outputs.cache-hit != 'true'
5353
run: |
54-
npm ci --ignore-scripts --prefer-offline --no-audit
54+
npm ci --ignore-scripts --prefer-offline --no-audit --strict-peer-deps
5555
5656
- name: 🧪 Run tests
5757
env:

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ allow-git=none
88

99
# Security hardening: skip package versions published less than 7 days ago (based on CISA's guidance).
1010
min-release-age=7
11+
12+
# Fail on peer dependency conflicts so dependabot PRs with broken peer deps are rejected.
13+
strict-peer-deps=true

0 commit comments

Comments
 (0)