Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the template’s dependency vulnerability scanning to use uv audit --locked (instead of pip-audit), integrates it into CI before dependency installation, and adds a 7-day exclude-newer “cooldown” to reduce exposure to newly uploaded packages during resolution.
Changes:
- Replaced the
pip-auditdev dependency andmake auditimplementation withuv audit --locked. - Added a CI step to run the audit before
uv syncso known vulnerabilities fail the job early. - Configured
uvwithexclude-newer = "7 days"and updated template documentation/guidance accordingly.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
uv.lock |
Removes pip-audit and its transitive dependencies; records exclude-newer lock options; bumps some dev tool versions. |
pyproject.toml |
Drops the audit dependency group; adds [tool.uv] exclude-newer = "7 days". |
Makefile |
Updates audit target to run uv audit --locked. |
.github/workflows/python-app.yml |
Runs make audit before installing dependencies in CI. |
README.md |
Updates docs to reference uv audit --locked and explains the cooldown behavior. |
AGENTS.md |
Updates agent guidance to use uv audit/uv audit --locked. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
NathanCQC
approved these changes
May 6, 2026
Collaborator
NathanCQC
left a comment
There was a problem hiding this comment.
Thank you for doing this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pip-auditdependency with nativeuv audit --lockeduv syncin CI so vulnerable locked packages stop the job before installationexclude-newer = "7 days"cooldown to reduce exposure to newly uploaded compromised packagesuv auditFixes #88
Validation
make audituv run pytestuv run ruff format --check .uv run ruff check .uv run ty check src testsSKIP=no-commit-to-branch uv run prek run --all-files