-
QuestionI'm working on a project where I'm scanning repositories for security vulnerabilities and license information using Trivy. For NPM and Python packages using PIP, the packages need to be installed prior to scanning for the licenses to be picked up. For NPM, I can pre-process the directories and install the packages. For Python, I reviewed the code and it looks like the package either needs to be installed globally or the system environment variable Since I'm dealing with multiple Python projects, there will be multiple virtual environments. Any ideas on how I can pre-process or post-process to get a single SBOM with all of the Python project information? One thought was to scan each project individually setting the Reference: lfscanning/scaffold#76 TargetFilesystem ScannerLicense Output FormatSPDX ModeStandalone Operating SystemLinux Ubuntu VersionNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I tried to find a way to detect a virtual environment without activating it, but no luck. Also, the virtualenv path differs depending on tools.
I wonder if there is a uniform way of identifying the path of the project's virtualenv. Currently, the only way I can think of is to scan each project after activating virtualenv and merge the SBOMs as you said. @DmitriyLewen Do you have any ideas? |
Beta Was this translation helpful? Give feedback.
I tried to find a way to detect a virtual environment without activating it, but no luck.
https://stackoverflow.com/questions/22003769/get-virtualenvs-bin-folder-path-from-script
Also, the virtualenv path differs depending on tools.
I wonder if there is a uniform way of identifying th…