Grype is a vulnerability scanner for container images and filesystems. This jenkins plugin scans a given target and saves a report as job artifact.
This jenkins plugin installs grype in the job workspace directory and performs scan. See section Installation/Recommended for more installation details.
pipeline
{
agent any
options
{
skipStagesAfterUnstable()
}
stages
{
stage('Build')
{
steps
{
step([$class: 'GrypeScannerStep', scanDest: 'dir:/tmp', repName: 'myScanResult.txt'])
}
}
}
}
TODO Decide where you're going to host your issues, the default is Jenkins JIRA, but you can also enable GitHub issues, If you use GitHub issues there's no need for this section; else add the following line:
Report issues and enhancements in the Jenkins issue tracker.
TODO review the default CONTRIBUTING file and make sure it is appropriate for your plugin, if not then add your own one adapted from the base file
Refer to our contribution guidelines
Licensed under MIT, see LICENSE