Skip to content

Optimize trivy plugin #3

@prabhu

Description

@prabhu

We're stuck with trivy for a bit more time. The purpose of this ticket is to optimize and trim the size of the plugin.

Below is the main code
https://github.com/CycloneDX/cdxgen-plugins-bin/blob/main/thirdparty/trivy/main.go

While this imports all the commands, we only need two commands - image and rootfs. Even rootfs alone is enough since cdxgen could work with just that.

So perhaps a much simplified version of this code

https://github.com/aquasecurity/trivy/blob/main/pkg/commands/artifact/run.go#L197

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions