-
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (57 loc) · 1.62 KB
/
Copy pathsecurity.yml
File metadata and controls
68 lines (57 loc) · 1.62 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
# RenderTrust Security Scanning
# OWASP compliance: dependency audit + SAST
name: Security
on:
pull_request:
branches: [dev]
push:
branches: [dev]
schedule:
- cron: "0 6 * * 1" # Weekly Monday 6am UTC
concurrency:
group: security-${{ github.ref }}
cancel-in-progress: true
env:
PYTHON_VERSION: "3.11"
jobs:
dependency-audit:
name: Dependency Audit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
- name: Install dependencies
run: pip install ".[dev]"
- name: Run pip-audit
# CVE-2024-23342: ecdsa timing attack — no fix available, upstream considers OOS
run: pip-audit --desc on --ignore-vuln CVE-2024-23342
sast:
name: Static Analysis (Semgrep)
runs-on: ubuntu-latest
container:
image: semgrep/semgrep
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run Semgrep
run: semgrep scan --config auto --error core/auth/ core/api/ core/config.py core/database.py core/main.py
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
secrets-scan:
name: Secrets Detection
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Gitleaks
uses: gitleaks/gitleaks-action@v2
continue-on-error: true # Requires license for org repos
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}