This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
out of date python-safety package causes error in scanner-cli docker image #163
Comments
derwent-m
pushed a commit
to derwent-m/scanner-cli
that referenced
this issue
Sep 8, 2020
4 tasks
@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 |
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! #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.
And
Thanks |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
docker run --rm -v "$PWD/web:/target" derwentx/scanner-cli:latest
Actual behavior: [What actually happens]
The
python-safety
module returns the following error:docker run --rm -v "$PWD/web:/target" hawkeyesec/scanner-cli:latest
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 pipelineSo that I can triage those issues accordingly.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: