Skip to content

Commit db77621

Browse files
author
Julien Bouquillon
authored
fix(report): add trivy target image (#77)
1 parent 284eaa0 commit db77621

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

report/www/src/__tests__/__snapshots__/Url.test.js.snap

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,9 @@ Array [
17051705
<table>
17061706
<caption
17071707
data-testid="table-caption"
1708-
/>
1708+
>
1709+
ghcr.io/socialgouv/sample-next-app/hasura:latest (debian 10.9)
1710+
</caption>
17091711
<thead>
17101712
<tr>
17111713
<th
@@ -3543,7 +3545,9 @@ Array [
35433545
<table>
35443546
<caption
35453547
data-testid="table-caption"
3546-
/>
3548+
>
3549+
ghcr.io/socialgouv/sample-next-app/hasura:latest (debian 10.9)
3550+
</caption>
35473551
<thead>
35483552
<tr>
35493553
<th

report/www/src/components/Trivy.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export const Trivy: React.FC<TrivyProps> = ({ data }) => {
6767
{image.trivy.Vulnerabilities &&
6868
image.trivy.Vulnerabilities.length ? (
6969
<Table
70+
caption={image.trivy.Target}
7071
columns={columns}
7172
data={image.trivy.Vulnerabilities?.sort(orderBySeverity)}
7273
rowKey={(row) => row.PkgName + row.VulnerabilityID}

0 commit comments

Comments
 (0)