Skip to content
New issue

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

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

Already on GitHub? # to your account

Bug: Missing JSON report when running as Dockerized #318

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

Bug: Missing JSON report when running as Dockerized #318

kaiorafael opened this issue Jun 28, 2024 · 2 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
@prabhu
Copy link
Member

prabhu commented Jul 3, 2024

@kaiorafael since you invoke with --bom /tmp/cdxgen2.json, is there a file named --bom /tmp/cdxgen2.vdr.json getting generated? The reports-dir argument needs to be improved. Also note that the .json is a jsonlines formatted file which is going away in v6. So best to consume the .vdr.json file

@kaiorafael
Copy link
Author

@kaiorafael since you invoke with --bom /tmp/cdxgen2.json, is there a file named --bom /tmp/cdxgen2.vdr.json getting generated?

No

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants