Skip to content

Commit b9efe4d

Browse files
feat: add npm audit checks to CI workflow
- Add 'Audit - Production' job for production dependencies - Add 'Audit - All' job for all dependencies - Follow existing CI job pattern with 15-minute timeout
1 parent 8f22894 commit b9efe4d

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
@@ -103,3 +103,51 @@ jobs:
103103

104104
- name: Check Licenses
105105
run: npm run check-licenses
106+
107+
audit-prod:
108+
name: Audit - Production
109+
runs-on: ubuntu-latest
110+
timeout-minutes: 15
111+
steps:
112+
- name: Checkout
113+
uses: actions/checkout@v5
114+
115+
- name: Setup Node.js
116+
uses: actions/setup-node@v5
117+
with:
118+
cache: 'npm'
119+
node-version: ${{ env.NODE_VERSION }}
120+
registry-url: 'https://npm.pkg.github.com'
121+
scope: '@deepnote'
122+
123+
- name: Install dependencies
124+
run: npm ci --prefer-offline --no-audit
125+
env:
126+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127+
128+
- name: Run audit for production dependencies
129+
run: npm audit --production
130+
131+
audit-all:
132+
name: Audit - All
133+
runs-on: ubuntu-latest
134+
timeout-minutes: 15
135+
steps:
136+
- name: Checkout
137+
uses: actions/checkout@v5
138+
139+
- name: Setup Node.js
140+
uses: actions/setup-node@v5
141+
with:
142+
cache: 'npm'
143+
node-version: ${{ env.NODE_VERSION }}
144+
registry-url: 'https://npm.pkg.github.com'
145+
scope: '@deepnote'
146+
147+
- name: Install dependencies
148+
run: npm ci --prefer-offline --no-audit
149+
env:
150+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151+
152+
- name: Run audit for all dependencies
153+
run: npm audit

0 commit comments

Comments
 (0)