-
Notifications
You must be signed in to change notification settings - Fork 8
63 lines (52 loc) · 1.56 KB
/
security.yml
File metadata and controls
63 lines (52 loc) · 1.56 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
name: Security
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 6 * * 1' # Weekly on Monday at 6 AM UTC
jobs:
codeql:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: python
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --all-extras
- name: Run security audit
run: |
# Ignoring pip 25.2 vulnerabilities (uv manages pip, not user-facing)
# Risk: Low - only affects installation of malicious packages from untrusted sources
# Mitigation: All packages installed from trusted PyPI with uv.lock verification
uv run pip-audit \
--ignore-vuln GHSA-4xh5-x5gv-qwph \
--ignore-vuln GHSA-6vgw-5pg2-w6jp \
--ignore-vuln GHSA-58qw-9mgm-455v \
--ignore-vuln ECHO-ffe1-1d3c-d9bc \
--ignore-vuln ECHO-7db2-03aa-5591