You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1feb2c8
Browse filesBrowse the repository at this point in the historyBrowse files
Fix Pipenv dependency extraction and locked version checks (#765)
* fix(supply-chain): parse Pipenv dependency manifests
Parse Pipfile TOML and Pipfile.lock JSON dependencies, reuse exact lock versions, and report incomplete dependency parsing. Add regression and CLI coverage.
Signed-off-by: YMuskrat <[email protected]>
* fix(supply-chain): retain findings after Pipenv parser errors
Catch ValueError from Pipenv JSON/TOML parsing, including oversized integer conversion failures, and record a nonfatal dependency_parse_error for the offending file.
Add four regressions covering 5,000-digit metadata integers in both formats and CLI scans that retain unrelated SC2 and SC4 findings. Restore the interpreter digit limit after each case.
Signed-off-by: YMuskrat <[email protected]>
* fix(supply-chain): keep locked versions with their project
Scope Python lock lookups to the manifest directory and keep Pipenv locks separate from other manifest types. Leave conflicting locked versions unresolved while still checking each locked entry. Addresses the project association review on #765.
Signed-off-by: YMuskrat <[email protected]>
* test(supply-chain): isolate dependency versions across projects
Add 23 cases covering the exact docs Pipenv/root requirements layout, independent Pipenv projects, both component orders, unrelated same-directory manifests, conflicting categories, uv/Poetry scope and aggregate limits.
Validation: 662 focused tests, 10,027 unit tests and 124 integration tests passed, plus lint and formatting. All 23 new cases passed against a freshly built wheel using deterministic OSV responses.
Signed-off-by: YMuskrat <[email protected]>
* fix(supply-chain): continue after file-local lockfile limitations
Keep collecting independent project lockfiles after Pipenv parse errors, unsupported sources and file-local limits. Stop only for the aggregate file, runtime or package budget.
Signed-off-by: YMuskrat <[email protected]>
* test(supply-chain): retain resolution after partial Pipenv locks
Cover unsupported Git dependencies, malformed lockfiles, oversized entries and file-local entry limits in both file orders. Verify unrelated manifests still receive their locked versions and existing parse limitations remain reported.
Validation: 672 focused tests passed; all ten new cases passed against source and a freshly installed wheel. Unit tests passed after retrying 40 environment failures with the missing SOCKS dependency installed; 124 integration tests passed.
Signed-off-by: YMuskrat <[email protected]>
---------
Signed-off-by: YMuskrat <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -979,6 +979,10 @@ SC4 uses the [OSV.dev](https://osv.dev) API to check dependencies against the fu
979
979
-**Batch queries** — all dependencies are checked in a single HTTP call.
980
980
-**Automatic fallback** — if OSV.dev is unreachable (air-gapped/offline), a small built-in fallback list is used.
981
981
-**Caching** — results are cached in-memory for 1 hour to avoid redundant API calls during a session.
982
+
-**Pipenv** — reads `Pipfile` package tables and the direct/transitive packages in
983
+
`Pipfile.lock`, including development and custom categories. Exact lock versions
984
+
can resolve unpinned manifest dependencies. Malformed entries and unsupported
985
+
VCS/local sources are reported as incomplete dependency checks.
982
986
983
987
The tool requires outbound HTTPS access to `api.osv.dev` for live vulnerability data. When that is not available, findings are limited to the static fallback list.
0 commit comments