Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Missing JSON report when running as Dockerized #318

Open
kaiorafael opened this issue Jun 28, 2024 · 0 comments
Open

Bug: Missing JSON report when running as Dockerized #318

kaiorafael opened this issue Jun 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kaiorafael
Copy link

Expected Behavior

When Dockerized deepscan should generate the .json file as well.

Actual Behavior

When running as described in the documentation, I can find a /tmp/report-docker.json file output

depscan --src /tmp/image.tar -o /tmp/report.json -t docker

However, when Dockerized, I am not able to find the .json file report. I can only find .html and .pdf reports, instead.

Steps to Reproduce

  1. git clone repository
  2. build it as: docker build -t deepscan .
  3. collect image inventory using cdxgen
  4. Run against a SBOM file generated in 3:
docker run -v /tmp:/tmp -v $HOME/.cache:/root/.cache -e VDB_HOME=/root/.cache deepscan --bom /tmp/cdxgen2.json --reports-dir /tmp/bar -o /tmp/bar/report.json

Inside of /tmp/bar there are only the following files:

.
├── report.html
└── report.pdf

Additional Information

No response

@kaiorafael kaiorafael added the bug Something isn't working label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant