Thanks to visit codestin.com
Credit goes to github.com

Skip to content

anubhav06/copa-grype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔌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:

# Build the binary from source
git clone https://github.com/anubhav06/copa-grype.git
cd copa-grype
make
# 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

About

🧩 Grype plugin for copa

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •