| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,20 +35,21 @@ async function updateScanStatus(findings) { | |||
| 35 | 35 | scanName, | |
| 36 | 36 | { | |
| 37 | 37 | status: { | |
| 38 | - findingCount: findings.length, | ||
| 39 | - findingSeverities: { | ||
| 40 | - informationalCount: severityCount(findings, 'INFORMATIONAL'), | ||
| 41 | - lowCount: severityCount(findings, 'LOW'), | ||
| 42 | - mediumCount: severityCount(findings, 'MEDIUM'), | ||
| 43 | - highCount: severityCount(findings, 'HIGH'), | ||
| 38 | + findings: { | ||
| 39 | + count: findings.length, | ||
| 40 | + severities: { | ||
| 41 | + informational: severityCount(findings, 'INFORMATIONAL'), | ||
| 42 | + low: severityCount(findings, 'LOW'), | ||
| 43 | + medium: severityCount(findings, 'MEDIUM'), | ||
| 44 | + high: severityCount(findings, 'HIGH'), | ||
| 45 | + }, | ||
| 46 | + categories: Object.fromEntries(findingCategories.entries()), | ||
| 44 | 47 | }, | |
| 45 | - findingCategories: Object.fromEntries(findingCategories.entries()), | ||
| 46 | 48 | }, | |
| 47 | 49 | }, | |
| 48 | 50 | { headers: { 'content-type': 'application/merge-patch+json' } } | |
| 49 | 51 | ); | |
| 50 | 52 | console.log('Updated status successfully'); | |
| 51 | - // console.log(res); | ||
| 52 | 53 | } catch (err) { | |
| 53 | 54 | console.error('Failed to update Scan Status via the kubernetes api'); | |
| 54 | 55 | console.error(err); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments