Skip to content

Commit

Permalink
parsing critical vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
iamayushm committed Sep 17, 2024
1 parent 10dee8c commit b56128f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/mustacheHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ export class MustacheHelper {
mapSeverityCount(imageScanExecutionInfo:any):severityCount | {} {
if (imageScanExecutionInfo && imageScanExecutionInfo.severityCount){
return {
critical: imageScanExecutionInfo.severityCount.critical,
high: imageScanExecutionInfo.severityCount.high,
moderate: imageScanExecutionInfo.severityCount.moderate,
low: imageScanExecutionInfo.severityCount.low,
Expand Down
1 change: 1 addition & 0 deletions src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface vulnerability {
permission: string;
}
export interface severityCount {
critical: number;
high: number;
moderate: number;
low: number;
Expand Down

0 comments on commit b56128f

Please sign in to comment.