Repository navigation
fix: bound dependency snapshot scans for lockfile PRs - #2477
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
There was a problem hiding this comment.
🟡 Changes recommended
The dependency-review workflow compares mismatched base and head scan scopes and omits workspace and SDK dependency roots, producing false dependency changes and incomplete dependency graphs.
3 open issues
What changed in this PR
This PR aims to prevent dependency-review timeouts on lockfile updates such as #2464 and #2465 by limiting snapshot scans to relevant dependency inputs.
Changes:
- Adds focused staging and snapshot submission for root uv lockfile and npm lockfile-pair changes.
- Retains full scans for mixed or unsupported dependency inputs and pushes to
main, without changing severity or license policy. - Adds regression tests for scan selection and staging, including exercising both ecosystems when the workflow changes.
| File | Description |
|---|---|
tests/unit/test_dependency_review_workflow.py |
Tests focused scan selection, staged files, and fallback conditions. |
.github/workflows/dependency-review.yml |
Adds focused dependency snapshots alongside the existing full-scan path. |
Review effort: Balanced

Closes #2476
Summary
main. Bound each Python requirements report to 120 seconds on that path so one file cannot consume the entire ten-minute job. If a report times out, Component Detection falls back to declared dependencies for that file, so its transitive graph can be incomplete.mainby fix: bootstrap image security remediation with retained evidence #2409.Paths changed
.github/workflows/dependency-review.ymltests/unit/test_dependency_review_workflow.pyValidation
uv run --no-project --with pytest --with pyyaml python -m pytest -q -o addopts='' tests/unit/test_dependency_review_workflow.py— 14 passed after integrating latestmain.git diff --check— passed.24c8711— passed, with no snapshot warning or dependency changes for this workflow/test-only diff.2485239contains the full-scan time bound. All hosted pull request checks on this exact head have passed. Themainpush full-scan path has not been verified with this change.Once this repair reaches
main, rerun dependency review on #2464 and #2465 before treating either as merge ready.