-
Notifications
You must be signed in to change notification settings - Fork 46
46 lines (42 loc) · 1.07 KB
/
vulnerability-scan.yml
File metadata and controls
46 lines (42 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Vulnerability Scan
on:
push:
branches: [main]
pull_request:
branches: [main]
merge_group:
branches: [main]
permissions:
contents: read
jobs:
python-scan:
name: Python dependencies
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Scan for vulnerabilities
run: ./scripts/scan-vulnerabilities.sh --recursive ./
npm-scan:
name: NPM - ${{ matrix.path }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: true
matrix:
path:
- src/typescript
- examples/chatbots/typescript
- examples/servers/auth
- examples/servers/cat-facts
- examples/servers/dog-facts
- examples/servers/dictionary
- examples/servers/weather-alerts
- e2e_tests/typescript
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- run: npm ci && npm audit --audit-level critical
working-directory: ./${{ matrix.path }}