-
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (24 loc) · 766 Bytes
/
Copy pathsecurity-audit.yml
File metadata and controls
27 lines (24 loc) · 766 Bytes
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
name: security-audit
on:
pull_request: {}
schedule:
- cron: "0 6 * * 1" # weekly Monday 06:00 UTC
concurrency:
group: security-audit-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
pip-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- run: uv python install 3.10
- name: Export locked dependencies
run: uv export --all-extras --no-hashes > /tmp/requirements.txt
- name: Install pip-audit
run: uv tool install pip-audit
- name: Audit dependencies
run: pip-audit --no-deps --disable-pip -r /tmp/requirements.txt