You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the yaml config to ignore certain vulnerabilities, it would be nice if we could also add the reason, why we ignore the vulnerabilities. This information would really help us create automated security reports about our images. Here an easy example (only shows the requested feature, the example rule itself does not make sense):
.grype.yaml:
ignore:
- vulnerability: CVE-2010-0733
reason: This vulnerability is not relevant in our application, because the vulnerability is only a problem under certain circumstances, that are not present in our application.
Then in our output template, we would love to be able to use this reason:
myTemplate.tmpl:
<p>
The following vulnerabilities are considered irrelevant:
<ul>
{{- range .IgnoredMatches}}
<li>{{.Vulnerability.ID}} ({{.AppliedIgnoreRules.Reason}})</li>
{{- end}}
</ul>
</p>
The output should then look like this:
The following vulnerabilities are considered irrelevant:
- CVE-2010-0733 (This vulnerability is not relevant in our application, because the vulnerability is only a problem under certain circumstances, that are not present in our application.)
Why is this needed:
Documenting the reason for an ignore rule would help understanding third parties, why we decided to ignore some vulnerabilities. Therefor it would be really helpful for us to be able to use the reason field in an output template, so we can generate the reasons into our security reports.
Kind regards
Timo
The text was updated successfully, but these errors were encountered:
Hello!
What would you like to be added:
In the yaml config to ignore certain vulnerabilities, it would be nice if we could also add the reason, why we ignore the vulnerabilities. This information would really help us create automated security reports about our images. Here an easy example (only shows the requested feature, the example rule itself does not make sense):
.grype.yaml:
Then in our output template, we would love to be able to use this reason:
myTemplate.tmpl:
The output should then look like this:
Why is this needed:
Documenting the reason for an ignore rule would help understanding third parties, why we decided to ignore some vulnerabilities. Therefor it would be really helpful for us to be able to use the reason field in an output template, so we can generate the reasons into our security reports.
Kind regards
Timo
The text was updated successfully, but these errors were encountered: