Skip to content

Commit 5dfe549

Browse files
committed
ci: add Dependabot + pip-audit security scanning
Weekly Dependabot for Python and GitHub Actions deps. pip-audit runs on dependency changes + weekly Monday schedule.
1 parent 7a61a2d commit 5dfe549

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
# Python dependencies
4+
- package-ecosystem: pip
5+
directory: /
6+
schedule:
7+
interval: weekly
8+
open-pull-requests-limit: 10
9+
labels: ["dependencies"]
10+
11+
# GitHub Actions
12+
- package-ecosystem: github-actions
13+
directory: /
14+
schedule:
15+
interval: weekly
16+
open-pull-requests-limit: 5
17+
labels: ["dependencies", "ci"]

.github/workflows/security.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Security Audit
2+
on:
3+
push:
4+
branches: [main]
5+
paths:
6+
- 'pyproject.toml'
7+
- 'uv.lock'
8+
pull_request:
9+
paths:
10+
- 'pyproject.toml'
11+
- 'uv.lock'
12+
schedule:
13+
# Run weekly on Monday at 08:00 UTC
14+
- cron: '0 8 * * 1'
15+
16+
jobs:
17+
pip-audit:
18+
name: Audit Python dependencies
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: astral-sh/setup-uv@v4
23+
with:
24+
version: "latest"
25+
- name: Set up Python
26+
run: uv python install 3.12
27+
- name: Install pip-audit
28+
run: pip install pip-audit
29+
- name: Audit dependencies
30+
run: uv export --frozen --no-hashes > /tmp/requirements.txt && pip-audit -r /tmp/requirements.txt --desc

0 commit comments

Comments
 (0)