Repository navigation
Add CocoaPods scanner - #32
Conversation
Parses the resolved dependency graph directly from Podfile.lock (PODS, DEPENDENCIES and SPEC CHECKSUMS sections). No pod executable is required since the lockfile is already fully resolved. Adds PyYAML as an explicit dependency for parsing the lockfile.
The branch predates "Return an iterable from scanner implementations", so scan() still returned an optional single scan. Running it through the CLI failed with "'DependencyScan' object is not iterable", because _execute_scans yields from the scanner result. Returns a list of scans instead, and an empty list for an empty lockfile. The unit tests called scan() directly and therefore did not catch this, so they now assert on the returned sequence. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
9803eb7 to
201d7cd
Compare
|
Rebased onto current Conflicts resolved: scanner registry in The rebase surfaced a real defect. This branch predates Return an iterable from scanner implementations, so The unit tests called Merge order: #38 (Composer) and #31 (Swift) touch the same registry and README lines. Suggested order is #38 → #32 → #31, with the README ecosystem list updated for all three in #31. 🤖 Generated with Claude Code |
|
@copilot resolve the merge conflicts in this pull request |
# Conflicts: # CHANGELOG.md # README.md # src/ts_scan/__init__.py Co-authored-by: gr-markin <2349286+gr-markin@users.noreply.github.com>
Co-authored-by: gr-markin <2349286+gr-markin@users.noreply.github.com>
Co-authored-by: gr-markin <2349286+gr-markin@users.noreply.github.com>
Co-authored-by: gr-markin <2349286+gr-markin@users.noreply.github.com>
Done in |
Summary
CocoaPodsScannerthat parses the fully resolved dependency graph directly fromPodfile.lock(PODS,DEPENDENCIES,SPEC CHECKSUMSsections) — nopodexecutable invocation needed since the lockfile is already resolvedcocoapodspurl type as key/purl prefix; per-pod checksums fromSPEC CHECKSUMSare attached to eachDependencyCocoaPodsScanneralongside the other package-manager scanners;--cocoapods:ignorebecomes available like for the other PM scannersDependencies added
PyYAML~=6.0— to parse the YAML-formattedPodfile.lock(was already present as a transitive dependency ofspdx-tools, now declared explicitly since ts-scan relies on it directly)Test plan
pytest tests/test_cocoapods.py— accepts()/scan() unit tests against a representativePodfile.lockfixture, including a subspec dependency (SDWebImage/Core) and checksum propagationpytest tests/— full existing suite still passes