Scans an image in harbor , returns the results, and will fail a build if CVE threshold is crossed.
username
- username to log into harbor withpassword
- password for harborharbor_host
- Required. The DNS host name or IP address that will be used to connect to your Harbor instance.
this resource does not implement check
this resource does not implement in
repository
- The registry path including [project]/[image_name] in Harbor.tag
- the image tagharbor_scan_thresholds
- json array of acceptable thresholds. Array must contain at least 1 threshold. The format must be severity (CVE Sev Level 1-5) & count (integer) for each desired threshold element in the array. severity 1 means there are vulnerabilities .
see the examples directory for usage. The docker image can be found at warroyo90/harbor-scan-resource