Closed derwent-m closed 3 years ago
@haohaolee is it possible to complete this PR Fix as we are also having this problem
@ricohomewood I am looking into this right now~
@ricohomewood Please take a look at the latest image in docker hub to see if it works for you now
Thanks @haohaolee but the latest build is still showing pyton-safey as 1.8.4
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
Try my fix! https://github.com/hawkeyesec/scanner-cli/pull/164
Hi @derwent-m @ricohomewood Please try again. I am not familiar with the image deployment process, just updated the version tag.
Hi @haohaolee. Yep the lasted Docker image has the update version now and is working.
Digest: sha256:1d66a2e6952394b5b246106df006403fc41a39e5d90223c5bb9da07c465a8b17
Status: Downloaded newer image for hawkeyesec/scanner-cli:latest
And
[info] Running module python-safety
Thanks
Issue Template
Description
The
:latest
hawkeyesec/scanner-cli
Docker image, is using an outdated version of the safety pypi package. The version specified inDockerfile
is1.8.4
, however version1.9.0
contains a bug fix for this error.Steps to Reproduce
Expected behavior: [What you expect to happen]
When I use my own patched docker image with the latest python-safety, python-safety runs successfully and contributes outputs in the summary table
Actual behavior: [What actually happens]
The
python-safety
module returns the following error:Version
The latest version of the docker container, hawkeyesec/scanner-cli@sha256:e43564c74a8d4caf3e8c780cf96206966e0b603d19ef64ef31f14e6b5fbdbf98 according to
docker inspect --format='{{index .RepoDigests 0}}'
Feature Template
As a Python DevOps person I want to be notified of any
python-safety
issues in my pipeline So that I can triage those issues accordingly.Acceptance Criteria