diff --git a/.github/workflows/npm-audit.yml b/.github/workflows/npm-audit.yml new file mode 100644 index 0000000..775f02f --- /dev/null +++ b/.github/workflows/npm-audit.yml @@ -0,0 +1,23 @@ +name: NPM Audit + +on: + push: + branches: [ '*' ] + pull_request: + branches: [ '*' ] + +permissions: + contents: read + +jobs: + frontend-audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.22.2' + - name: Audit frontend dependencies + working-directory: src/main/webui + run: npm audit diff --git a/.github/workflows/npm-test.yml b/.github/workflows/npm-test.yml index 8698e50..88586ba 100644 --- a/.github/workflows/npm-test.yml +++ b/.github/workflows/npm-test.yml @@ -21,9 +21,6 @@ jobs: - name: Install frontend dependencies working-directory: src/main/webui run: npm ci - - name: Audit frontend dependencies - working-directory: src/main/webui - run: npm audit - name: Run frontend tests working-directory: src/main/webui run: npm test