17 lines
339 B
YAML
17 lines
339 B
YAML
name: API dependency and security checks
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
audit:
|
|
runs-on: debian-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Audit JavaScript dependencies when a lockfile exists
|
|
run: |
|
|
if test -f package-lock.json; then
|
|
npm audit --audit-level=high
|
|
fi
|