Skip to content

Add JSON lines output #1159

Description

@ocervell

What would you like to be added:
Add JSON line output like grype <INPUT> -o jsonl

Why is this needed:
Tail the output of grype to other tools in real-time

Additional context:
This would allow pipes like:
grype <INPUT> -o jsonl | jq -r '.matches[].vulnerability.id | xargs -I {cve_id} ./cve-search.py {cve_id}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions