requirements.txt
, pyproject.toml
or, the source code (highly discouraged)```bash
pip install pyscan-rs ``` look out for the "-rs" part or
```bash
cargo install pyscan ```
check out the releases.
Go to your python source directory (or wherever you keep your requirements.txt
/pyproject.toml
) and run:
```bash
pyscan
or
bash pyscan -d path/to/src ```
Pyscan can scan inside docker images given you provide the correct path inside. This is still in its early stage and may break easily.
```bash
pyscan docker -n my-docker-image -p /path/inside/container/to/source ```
by "source" I mean requirements.txt
, pyproject.toml
or your python files.
Here's the order of precedence for a "source" file:
requirements.txt
pyproject.toml
.py
) [highly discouraged]Pyscan will find dependency versions from pip
if not provided within the source file. Even though, Make sure you version-ize your requirements and use proper pep-508 syntax.
pyscan uses OSV as its database for now. There are plans to add a few more.
pyscan doesn't make sure your code is safe from everything. Use all resources available to you like Dependabot, pip-audit
or trivy.
While not coding, I am a broke high school student with nothing else to do. I appreciate all the help I'm worthy of.