CM-68709: Add pip package manager support to SCA local scans#502
Open
valeriistryhun-dev wants to merge 1 commit into
Open
CM-68709: Add pip package manager support to SCA local scans#502valeriistryhun-dev wants to merge 1 commit into
valeriistryhun-dev wants to merge 1 commit into
Conversation
valeriistryhun-dev
requested review from
avishaiamiel and
omer-roth
as code owners
July 24, 2026 08:22
valeriistryhun-dev
force-pushed
the
CM-68709-pip-cli-support
branch
from
July 24, 2026 13:08
94696a4 to
425df76
Compare
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.
What & why
Enables
cycode scan -t scato support plain pip projects (viapyproject.tomlorrequirements.txt) during local SCA scans, so CLI users get the same coverage as platform scans. Closes the CLI portion of Pip Phase 1 (CM-68709).Pip is now a first-class package manager alongside Poetry and uv for
pyproject.tomlprojects, and a standalone handler forrequirements.txt— the implementation mirrors the existing Poetry/uv restore handlers.Changes
RestorePipDependencieshandler — detects a plain-pip project two ways:pyproject.tomlwith neither[tool.poetry]nor[tool.uv](same disambiguation rule the backend's own Poetry/uv restorers use).requirements.txt(no content check needed — nothing else claims that filename).pylock.tomlalready exists next to the manifest, it's read directly; otherwisepip lock .(pyproject.toml) orpip lock -r requirements.txt -o pylock.toml(requirements.txt) is run to generate it (then cleaned up).RestoreUvDependencies/RestorePoetryDependenciesin the restore handler chain, so pip never wins thepyproject.tomlrace against Poetry/uv.consts.py—pylock.tomladded to the SCA supported files; a newpypi_pipecosystem bucket added, andpylock.tomlappended to the existingpypi_requirementsbucket so diff-scans fetch the lock sibling for therequirements.txtcase.Acceptance criteria
pyproject.toml(no Poetry/uv sections) orrequirements.txt→pip lockrestores deps before scanningpyproject.toml, without disturbing their existing detectionpylock.tomlsibling is read directly rather than regeneratedTesting