Skip to content

Commit 05783dc

Browse files
author
TeleGhost Dev
committed
chore: enhance CI with govulncheck, svelte-check and npm audit
1 parent a69be09 commit 05783dc

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/verify_pr.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ jobs:
5050
with:
5151
args: -exclude=G104,G304,G115,G103 ./...
5252

53+
- name: Dependency Vulnerability Check (govulncheck)
54+
run: |
55+
go install golang.org/x/vuln/cmd/govulncheck@latest
56+
govulncheck ./...
57+
5358
- name: Run Tests
5459
run: go test -v -short ./...
5560

@@ -73,6 +78,16 @@ jobs:
7378
cd frontend
7479
npm ci
7580
81+
- name: Security Audit (npm audit)
82+
run: |
83+
cd frontend
84+
npm audit --audit-level=high
85+
86+
- name: Code Quality Check (svelte-check)
87+
run: |
88+
cd frontend
89+
npm run check
90+
7691
- name: Build Check
7792
run: |
7893
cd frontend

frontend/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vite build",
9+
"check": "svelte-check",
910
"preview": "vite preview"
1011
},
1112
"devDependencies": {
1213
"@sveltejs/vite-plugin-svelte": "^1.0.1",
1314
"autoprefixer": "^10.4.24",
1415
"postcss": "^8.5.6",
1516
"svelte": "^3.49.0",
17+
"svelte-check": "^3.0.0",
1618
"tailwindcss": "^3.4.19",
1719
"vite": "^3.0.7"
1820
},
1921
"dependencies": {
2022
"qrious": "^4.0.2"
2123
}
22-
}
24+
}

0 commit comments

Comments
 (0)