Skip to content

in CVE Tool 3.2.1, --report parameter is not generate report file when no CVE found. Same issue observe in 3.3 #4326

Closed
@zongtaol

Description

@zongtaol

Description

In an Linux environment, I pip install the cve-bin-tool and try to operation a python scan to generate PDF report. with --report tag which should generate report even there is no CVE found. where as the report file is not generated after scan finished. Test on both 3.2.1 & 3.3 version.

To reproduce

Steps to reproduce the behaviour:

  1. docker pull amr-registry.caas.intel.com/owr/base_lnx:develop
  2. docker run -it amr-registry.caas.intel.com/owr/base_lnx:develop
  3. pip install cve-bin-tool==3.2.1 or 3.3
  4. create a tmp folder and add requirement.txt in the folder with cve-bin-tool as text
  5. cve-bin-tool tmp/requirement.txt --format=pdf --output-file=/OWR/tmp/MY_CVEScan_Report.pdf --report --log=debug
  6. cd tmpDir, then ls, there is no MY_CVEScan_Report.pdf listed.

Expected behaviour: Should be a MY_CVEScan_Report.pdf under /OWR/tmp/
Actual behaviour: no pdf generated.

Version/platform info

Version of CVE-bin-tool( e.g. output of cve-bin-tool --version): 3.2.1 & 3.3
Installed from pypi or github? From Pip install
Operating system: Linux/Windows (other platforms are unsupported but feel free to report issues anyhow)

  • On Linux (or Windows Subsystem for Linux) you can run uname -a Linux system
  • On Windows you can run systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
    Python version (e.g. python3 --version):
    Running in any particular CI environment we should know about? (e.g. Github Actions)

Anything else?

The container was built based on ubuntu image which add few intel certificated and proxy setting. if any dockerfile setting could potentially causing this issue. please let me know. Attached dockefile link below.

Since my local system is Windows and some scanning only support on linux system, I can only reproduce this issue on container instead of my local machine.

amr-registry.caas.intel.com/owr/base_lnx:develop.
https://github.com/intel-innersource/frameworks.devops.intel-devops-framework.abi.core/blob/main/.devcontainer/Linux/BaseDockerfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions