N21-2014 Setup new SHD client #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Security Audit | |
on: | |
pull_request: | |
paths: | |
- "package.json" | |
- "package-lock.json" | |
permissions: | |
contents: read | |
jobs: | |
PROD: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: npm audit prod | |
run: npm audit --production --audit-level=low | |
DEV: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: npm audit dev | |
# --only=dev currently does not work: https://npm.community/t/npm-audit-without-fix-ignores-only-prod/3959/7 | |
run: npm audit --only=dev --audit-level=moderate |