Skip to content

Commit de80084

Browse files
committed
chore(security): add dependency vulnerability audit target
Add pip-audit as a dev dependency with a separate make audit target, document the audit workflow, and constrain supported Python metadata to >=3.11,<4.0 so dependency resolution matches the supported runtime range.
1 parent f2126e1 commit de80084

6 files changed

Lines changed: 482 additions & 13 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Describe what you tested and how.
2424
- [ ] Manual testing completed
2525
- [ ] Automated tests updated or added
2626
- [ ] `make verify` passes inside the DUMB devcontainer
27+
- [ ] `make audit` reviewed when dependency metadata changed
2728

2829
## Related Issues
2930

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ make env-example
4545

4646
`make verify` checks that `.env.example` is current, but it does not rewrite the file for you. Use `make env-check` when you only want to check generated env-file drift.
4747

48+
Dependency vulnerability auditing is available as a separate check while the audit noise level is evaluated:
49+
50+
```bash
51+
make audit
52+
```
53+
54+
`make audit` runs `pip-audit` against the Poetry environment. It is not part of `make verify` yet.
55+
4856
## Pull Request Expectations
4957

5058
- Use Conventional Commit style for PR titles and commits.

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: env-check env-example format format-check lint lock-check metadata syntax test verify
1+
.PHONY: audit env-check env-example format format-check lint lock-check metadata syntax test verify
22

33
POETRY ?= poetry
44
PYTHON ?= $(POETRY) run python
@@ -7,6 +7,9 @@ RUFF ?= $(POETRY) run ruff
77
PYTHONPYCACHEPREFIX ?= /tmp/dumb-pycache
88
PYTHON_TARGETS ?= api utils tests scripts
99

10+
audit:
11+
$(POETRY) run pip-audit
12+
1013
env-example:
1114
$(PYTHON) scripts/generate_env_example.py
1215

0 commit comments

Comments
 (0)