Closed kwalsh-rz closed 3 months ago
This would mean changing the following lines:
204 if (ignoreList.length !== ignoredFindings.length) {
205 const missedIgnores = ignoreList.filter(name => !ignoredFindings.map(({ name }) => name).includes(name))
206 console.log('The following CVEs were not found in the result set:')
207 missedIgnores.forEach(miss => console.log(` ${miss}`))
208 throw new Error(`Ignore list contains CVE IDs that were not returned in the findings result set. They may be invalid or no longer be current vulnerabilities.`)
209 }
Link: https://github.com/alexjurkiewicz/ecr-scan-image/blob/master/index.js#L204-L209
Guess there are 2 approaches?
core.warning
error
as that would be a non-breaking change.I think 2. is nicer as it doesn't break existing behaviour.
I've opened https://github.com/alexjurkiewicz/ecr-scan-image/pull/48 to address this.
I think that when a CVE on your ignore list is no longer present on the image it should not fail (or be configurable to not fail). I think a warning would be more appropriate.
Ignore list contains CVE IDs that were not returned in the findings result set. They may be invalid or no longer be current vulnerabilities.