From 3f9d22b920fed489d23d3588b224d4d25b156b45 Mon Sep 17 00:00:00 2001 From: Pasquale De Rose Date: Wed, 8 Jan 2025 14:54:37 +0100 Subject: [PATCH] Create npm_audit.yml --- .github/workflows/npm_audit.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/npm_audit.yml diff --git a/.github/workflows/npm_audit.yml b/.github/workflows/npm_audit.yml new file mode 100644 index 0000000..303ec0e --- /dev/null +++ b/.github/workflows/npm_audit.yml @@ -0,0 +1,15 @@ +name: NPM audit scan + +on: [push, pull_request] + +jobs: + Run: + runs-on: ubuntu-latest + steps: + - name: Setup Node.js environment + uses: actions/setup-node@v4.1.0 + with: + node-version: 20.12.x + - name: Run audit + run: >- + npm audit --audit-level=moderate