Skip to content

Commit 4d362fb

Browse files
feat: add yarn audit checks to CI workflow
- Add 'Audit - Production' job for production dependencies - Add 'Audit - All' job for all dependencies - Use jlpm (yarn) for dependency auditing
1 parent 45fb503 commit 4d362fb

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,47 @@ jobs:
169169
- uses: actions/checkout@v4
170170
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
171171
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
172+
with:
173+
ignore_links: 'https://github.com/deepnote/jupyterlab-deepnote/pull/ https://github.com/deepnote/jupyterlab-deepnote/issues/'
174+
175+
audit-prod:
176+
name: Audit - Production
177+
runs-on: ubuntu-latest
178+
timeout-minutes: 15
179+
steps:
180+
- name: Checkout
181+
uses: actions/checkout@v4
182+
183+
- name: Base Setup
184+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
185+
186+
- name: Install dependencies
187+
run: jlpm
188+
env:
189+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
190+
191+
- name: Run audit for production dependencies
192+
run: jlpm audit --groups "dependencies"
193+
env:
194+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
195+
196+
audit-all:
197+
name: Audit - All
198+
runs-on: ubuntu-latest
199+
timeout-minutes: 15
200+
steps:
201+
- name: Checkout
202+
uses: actions/checkout@v4
203+
204+
- name: Base Setup
205+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
206+
207+
- name: Install dependencies
208+
run: jlpm
209+
env:
210+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
211+
212+
- name: Run audit for all dependencies
213+
run: jlpm audit
214+
env:
215+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)