ci(t2): add least-privilege dependency audit workflow
davoodmehraban89 committed
Oct 23, 2026 at 00:10 UTC
d758ac1e858bcee75a316bcc4217e0157f0c970c
1 file changed
+35
.github/workflows/security-checks.yml
new
+35
@@ -0,0 +1,35 @@
1
+name: Security checks
2
+
3
+on:
4
+ pull_request:
5
+ paths:
6
+ - "backend/**"
7
+ - ".github/workflows/security-checks.yml"
8
+ push:
9
+ branches: [source-data-cleanup]
10
+ paths:
11
+ - "backend/**"
12
+ - ".github/workflows/security-checks.yml"
13
+ workflow_dispatch:
14
+
15
+permissions:
16
+ contents: read
17
+
18
+jobs:
19
+ dependency-audit:
20
+ runs-on: ubuntu-latest
21
+ timeout-minutes: 15
22
+ defaults:
23
+ run:
24
+ working-directory: backend
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - uses: actions/setup-python@v5
28
+ with:
29
+ python-version: "3.12"
30
+ cache: pip
31
+ cache-dependency-path: backend/pyproject.toml
32
+ - name: Install project and audit tooling
33
+ run: python -m pip install -e '.[test]' 'pip-audit>=2.7,<3'
34
+ - name: Audit installed dependencies
35
+ run: python -m pip_audit --disable-pip --strict