Skip to content

Reduce JSON output size by removing redundant vulnerability information #1635

@hogo6002

Description

@hogo6002

Our JSON output includes the full OSV record for each vulnerability, leading to large JSON files (e.g. >20 MB for Ubuntu scans). This data is often unrelated, as one OSV record normally contain information about various packages and ecosystems, while OSV-Scanner already knows the specific affected package and version.

To reduce the output size, we should replace the vulnerability details with a more concise format. One option is to use

type VulnResult struct {

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogImportant but currently unprioritized

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions