Skip to content

Commit 3a973eb

Browse files
feat: add npm audit checks to CI workflow (#33)
- Add 'Audit - Production' job for production dependencies - Add 'Audit - All' job for all dependencies - Follow existing CI job pattern with 15-minute timeout Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 574e270 commit 3a973eb

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,51 @@ jobs:
121121

122122
- name: Check Licenses
123123
run: npm run check-licenses
124+
125+
audit-prod:
126+
name: Audit - Production
127+
runs-on: ubuntu-latest
128+
timeout-minutes: 15
129+
steps:
130+
- name: Checkout
131+
uses: actions/checkout@v5
132+
133+
- name: Setup Node.js
134+
uses: actions/setup-node@v5
135+
with:
136+
cache: 'npm'
137+
node-version: ${{ env.NODE_VERSION }}
138+
registry-url: 'https://npm.pkg.github.com'
139+
scope: '@deepnote'
140+
141+
- name: Install dependencies
142+
run: npm ci --prefer-offline --no-audit
143+
env:
144+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
145+
146+
- name: Run audit for production dependencies
147+
run: npm audit --production
148+
149+
audit-all:
150+
name: Audit - All
151+
runs-on: ubuntu-latest
152+
timeout-minutes: 15
153+
steps:
154+
- name: Checkout
155+
uses: actions/checkout@v5
156+
157+
- name: Setup Node.js
158+
uses: actions/setup-node@v5
159+
with:
160+
cache: 'npm'
161+
node-version: ${{ env.NODE_VERSION }}
162+
registry-url: 'https://npm.pkg.github.com'
163+
scope: '@deepnote'
164+
165+
- name: Install dependencies
166+
run: npm ci --prefer-offline --no-audit
167+
env:
168+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
169+
170+
- name: Run audit for all dependencies
171+
run: npm audit

0 commit comments

Comments
 (0)