File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches : [main]
66 pull_request :
77 branches : [main]
8+ schedule :
9+ - cron : ' 0 0 * * 1' # Weekly security scan on Mondays
810
911permissions :
1012 contents : read
8587
8688 - name : Run mypy
8789 run : mypy app tests || true # non-blocking until types are fully clean
90+
91+ security :
92+ name : Security scan (pip-audit)
93+ runs-on : ubuntu-latest
94+ steps :
95+ - uses : actions/checkout@v4
96+ - name : Set up Python
97+ uses : actions/setup-python@v5
98+ with :
99+ python-version : " 3.12"
100+ cache : pip
101+ cache-dependency-path : |
102+ requirements.txt
103+ requirements-dev.txt
104+ - name : Install dependencies
105+ run : |
106+ python -m pip install --upgrade pip
107+ pip install -r requirements.txt
108+ pip install pip-audit
109+ - name : Run pip-audit
110+ run : pip-audit -r requirements.txt
You can’t perform that action at this time.
0 commit comments