Skip to content

Commit

Permalink
fix: no findings bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jdew89 authored and alexjurkiewicz committed Mar 26, 2024
1 parent 328957a commit c396700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const main = async () => {

const ignoredCounts = countIgnoredFindings(ignoredFindings)
const findingsDetails = findingsList || []
const counts = findings.imageScanFindings.findingSeverityCounts
const counts = findings.imageScanFindings.findingSeverityCounts || {} // If no findings, default to empty object instead of undefined
const critical = counts.CRITICAL || 0
const high = counts.HIGH || 0
const medium = counts.MEDIUM || 0
Expand Down

0 comments on commit c396700

Please sign in to comment.