copa-grype

command module
v1.0.4-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

README

🔌Copa-Grype

Plugin for Copacetic to support patching grype produced results.

Learn more about Copacetic's scanner plugins here

Installation

You can download the latest and previous versions of copa-grype from the GitHub releases page. Make sure to add it to your PATH environment variable.

Otherwise, install using the CLI:

# Install the binary
curl -sL https://github.com/anubhav06/copa-grype/releases/latest/download/copa-grype -o copa-grype
# Add to PATH
export PATH=$PATH:/path/to/copagrype/directory

Example Usage

# generate a grype report
grype <image> -o json --file grype_report.json

# test plugin with example config
copa-grype grype_report.json
# this will print the report in JSON format. Example:
# {"apiVersion":"v1alpha1","metadata":{"os":{"type":"FakeOS","version":"42"},"config":{"arch":"amd64"}},"updates":[{"name":"foo","installedVersion":"1.0.0","fixedVersion":"1.0.1","vulnerabilityID":"VULN001"},{"name":"bar","installedVersion":"2.0.0","fixedVersion":"2.0.1","vulnerabilityID":"VULN002"}]}

# run copa with the scanner plugin (copa-grype) and the report file
copa patch -i $IMAGE -r grype_report.json --scanner grype

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL