From e6ed9a7c2812904621a566e0a3c3956c143e5c09 Mon Sep 17 00:00:00 2001 From: Shyngys Shynbolatov Date: Fri, 20 Nov 2026 07:10:04 +0800 Subject: [PATCH] ci: add npmscan-action for dependency security --- .github/workflows/npmscan.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/npmscan.yml diff --git a/.github/workflows/npmscan.yml b/.github/workflows/npmscan.yml new file mode 100644 index 0000000..8c68c55 --- /dev/null +++ b/.github/workflows/npmscan.yml @@ -0,0 +1,30 @@ +name: NPMscan + +on: + pull_request: + types: [opened, synchronize, reopened] + paths: [package.json, pnpm-lock.yaml, .github/workflows/npmscan.yml] + +permissions: {} + +jobs: + npmscan: + name: Dependency Security Scan + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - name: Run NPMscan + uses: NPMscan/npmscan-action@e2ff8c953f1a0b536abd70b4479984137c76e1fe # v1.4.1 + with: + files: | + pnpm-lock.yaml + package.json + mode: warn + comment: on-findings + fail-on-error: false