Merge pull request #891 from myrotvorets/wip #1138
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: Package Audit | |
on: | |
push: | |
branches: | |
- '**' | |
paths: | |
- package.json | |
- package-lock.json | |
- .github/workflows/package-audit.yml | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
audit-npm: | |
name: NPM Audit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | |
with: | |
node-version: lts/* | |
- name: Run audit | |
run: npm audit --omit=dev |