Skip to content

Commit b350c79

Browse files
Create npm_audit.yml
1 parent f7751d1 commit b350c79

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/npm_audit.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: NPM Security Audit
2+
3+
on:
4+
push:
5+
branches: [development, master]
6+
pull_request:
7+
branches: [development, master]
8+
9+
jobs:
10+
security-audit:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 18
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Run npm audit
26+
run: npm audit --audit-level=critical

0 commit comments

Comments
 (0)