Skip to content

Commit

Permalink
feat: add running information on summary
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Eulalio <[email protected]>
  • Loading branch information
IgorEulalio committed Dec 11, 2024
1 parent 9d1c735 commit 512486d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export interface Package {
path: string
layerDigest?: string
suggestedFix?: string
running?: boolean
vulns?: Vuln[]
}

Expand Down
2 changes: 2 additions & 0 deletions src/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ function getRulePkgMessage(rule: Rule, packages: Package[]) {
{ data: 'CVSS Version', header: true },
{ data: 'CVSS Vector', header: true },
{ data: 'Fixed Version', header: true },
{ data: 'InUse', header: true },
{ data: 'Exploitable', header: true }]];

rule.failures?.forEach(failure => {
Expand All @@ -171,6 +172,7 @@ function getRulePkgMessage(rule: Rule, packages: Package[]) {
{ data: `${vuln.cvssScore.value.version}` },
{ data: `${vuln.cvssScore.value.vector}` },
{ data: `${pkg.suggestedFix || "No fix available"}` },
{ data: `${pkg.running}` },
{ data: `${vuln.exploitable}` },
]);
}
Expand Down

0 comments on commit 512486d

Please sign in to comment.