tarunpandey23 38a4961176
Feat: Github Workflow Action for Scanning vulnerabilities using Trivy. (#19710)
* Added trivy scan and template for Openmetadata server

* Added trivy scan and template for Openmetadata server

* Removed Commented code

* Removed Commented code

* testing the workflow

* testing the workflow

* testing the workflow

* testing the workflow

* testing the workflow

* testing the workflow

* testing the workflow

* testing the workflow

* Updated the scan file

* added files for ingestion & ingestion-base-slim

* Testing the PR comment

* Testing the PR comment

* Testing the PR comment

* Updated trivy scan files

* Added the respective path for ingestion

---------

Co-authored-by: Tarun <tarun.p@deuexsolutions.com>
Co-authored-by: safayavatsal <vatsalsafaya@gmail.com>
Co-authored-by: Akash Jain <15995028+akash-jain-10@users.noreply.github.com>
2025-02-16 12:02:14 -08:00

36 lines
1.1 KiB
Smarty

{{- range . }}
<h2> 🛡️ TRIVY SCAN RESULT 🛡️ </h2>
<h4> Target: <code>{{ .Target }}</code></h4>
{{- if .Vulnerabilities }}
<h4>Vulnerabilities ({{ len .Vulnerabilities }})</h4>
<table border="1" cellspacing="0" cellpadding="5">
<thead>
<tr>
<th>Package</th>
<th>Vulnerability ID</th>
<th>Severity</th>
<th>Installed Version</th>
<th>Fixed Version</th>
</tr>
</thead>
<tbody>
{{- range .Vulnerabilities }}
<tr>
<td><code>{{ .PkgName }}</code></td>
<td><a href="{{ .PrimaryURL }}" target="_blank">{{ .VulnerabilityID }}</a></td>
<td>
{{- if eq .Severity "CRITICAL" }} 🔥 CRITICAL
{{- else if eq .Severity "HIGH" }} 🚨 HIGH
{{- else }} {{ .Severity }} {{- end }}
</td>
<td>{{ .InstalledVersion }}</td>
<td>{{ if .FixedVersion }}{{ .FixedVersion }}{{ else }}N/A{{ end }}</td>
</tr>
{{- end }}
</tbody>
</table>
{{- else }}
<h4>No Vulnerabilities Found</h4>
{{- end }}
{{- end }}