Skip to content

Add support for scanning single purl from the CLI #2225

@wagoodman

Description

@wagoodman

What would you like to be added:
Today we support scanning a set of purls from a newline delimited file, but we don't support scanning a single purl from the CLI without the need to involve a file. A current workaround to this is:

cat pkg:apk/mypurl@1.2.3 | grype purl:/dev/stdin

But more ideally we should be able to support this with:

grype pkg:apk/mypurl@1.2.3

Why is this needed:
This makes it really easy to scan one-off packages without the need to get docker or other files involved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions