Skip to content

Commit ec1ecdc

Browse files
security check added (#4120)
1 parent 2a08231 commit ec1ecdc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/security_scan.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Security Scans
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
security-scans:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: '18'
22+
23+
- name: Install Dependencies
24+
run: npm install
25+
26+
- name: Run npm Audit
27+
run: npm audit --audit-level=high || echo "npm audit failed"

0 commit comments

Comments
 (0)