hawkeyesec / scanner-cli

A project security/vulnerability/risk scanning tool
Other
358 stars 89 forks source link

Update `python-safety` and specify Python packages in `requirements.txt` #164

Open derwent-m opened 4 years ago

derwent-m commented 4 years ago

Description

Fixes #163

Type of change

Toolchain

How Has This Been Tested?

Test Configuration:

Notes for reviewer

git clone git@github.com:derwent-m/sample-flask-app.git
cd sample-flask-app
docker run --rm -v "$PWD/web:/target" derwentx/scanner-cli:latest

Checklist:

haohaolee commented 4 years ago

Hi @derwent-m Sorry I just found your PR, but I have already tried to fix this. Please take a look at the latest image and code to see if it works for you

derwent-m commented 4 years ago

Hi @derwent-m Sorry I just found your PR, but I have already tried to fix this. Please take a look at the latest image and code to see if it works for you

The latest image doesn't work unfortunately.

Steps attempted to reproduce:

git clone https://github.com/ThoughtWorksInc/AS101-4-workshop.git
cd AS101-4-workshop
docker run --rm -v "$PWD/web:/target" hawkeyesec/scanner-cli:latest

Image downloaded:

Digest: sha256:6b3cfc584f1e34d065817ea2f8c5bf92b7247ce4e9d52912e60e41311d0b0ec9
Status: Downloaded newer image for hawkeyesec/scanner-cli:latest

Error still shows:

[error] python-safety returned an error! Unexpected end of JSON input