-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.28 KB
/
Copy pathsecurity.yml
File metadata and controls
34 lines (34 loc) · 1.28 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
name: Security and compatibility
on: [push, pull_request]
permissions:
contents: read
jobs:
boundaries:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install torch --index-url https://download.pytorch.org/whl/cpu
# The CPU index supplies old setuptools wheels; refresh build tooling from
# PyPI before auditing (83.0.0 fixes CVE-2026-59890 and CVE-2025-47273).
- name: Install patched build tooling
run: python -m pip install --upgrade --index-url https://pypi.org/simple 'pip>=26.2' 'setuptools>=83.0.0'
- run: pip install '.[server,dev]' pip-audit keyrings.alt
- run: pytest -q tests/test_run_management.py tests/test_security_boundaries.py tests/test_team_server.py tests/test_adaptive_pipeline.py tests/test_accuracy_gate.py
- run: pip-audit
- run: buffdata sbom --output sbom.json
- uses: actions/upload-artifact@v4
with:
name: dependency-sbom
path: sbom.json
secrets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}