Skip to content

Machine-readable output #262

Closed
Closed
@rossburton

Description

@rossburton

Can we have a mode to have only machine-readable output?

For example the output is currently:

$ cve-bin-tool -x /data/poky-tmp/master/work/corei7-64-poky-linux/libgcrypt/1.8.5-r0/image/ -s ffmpeg
Checking if CVE data needs an update.
Last Update: 2019-12-09
Local database has been updated in the past 24h.
New data not downloaded.  Use "-u now" to force an update
Skipping checker: ffmpeg
('gnupg', 'libgcrypt', '%1.8.5%')

Overall CVE summary:
There are 1 files with known CVEs detected
Known CVEs in ( ' l i b g c r y p t ' ,   ' 1 . 8 . 5 ' ):
libgcrypt,1.8.5,CVE-2018-12433,MEDIUM
libgcrypt,1.8.5,CVE-2018-12437,MEDIUM
libgcrypt,1.8.5,CVE-2018-12438,MEDIUM

If I want to parse that I need to drop lines until I find "Known CVEs in" and then I have a CSV format. A machine-readable mode would just be that output, and the not rest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions