-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (60 loc) · 1.83 KB
/
Copy pathsecurity.yml
File metadata and controls
74 lines (60 loc) · 1.83 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Security Scan
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
schedule:
# Run every Monday at 08:00 UTC
- cron: '0 8 * * 1'
permissions:
contents: read
security-events: write
jobs:
python-audit:
name: Python Dependency Audit
runs-on: ubuntu-latest
defaults:
run:
working-directory: symmetry-unified-backend
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.11"
- name: Install pip-audit
run: pip install pip-audit
- name: Audit Python dependencies
run: pip-audit -r requirements.txt --desc on
python-lint:
name: Python Lint (ruff)
runs-on: ubuntu-latest
defaults:
run:
working-directory: symmetry-unified-backend
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.11"
- name: Install ruff
run: pip install ruff
- name: Run ruff
run: ruff check .
node-audit:
name: Node.js Dependency Audit
runs-on: ubuntu-latest
defaults:
run:
working-directory: desktop-electron-frontend
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: "18"
cache: npm
cache-dependency-path: desktop-electron-frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Audit Node.js dependencies
run: npm audit --audit-level=high