Fix #14: Corrected typo

This commit is contained in:
abhisek 2023-02-16 16:02:53 +05:30
parent 9c1e224a43
commit b4c407dddc
No known key found for this signature in database
GPG Key ID: CB92A4990C02A88F

View File

@ -181,8 +181,10 @@ func (r *summaryReporter) Finish() error {
fmt.Println() fmt.Println()
fmt.Println(text.Faint.Sprint(summaryListPrependText, r.manifestCountStatement())) fmt.Println(text.Faint.Sprint(summaryListPrependText, r.manifestCountStatement()))
fmt.Println() fmt.Println()
r.renderRemediationAdvice() r.renderRemediationAdvice()
fmt.Println() fmt.Println()
fmt.Println("Install as a security gate in CI for incremental scan and blocking risky dependencies") fmt.Println("Install as a security gate in CI for incremental scan and blocking risky dependencies")
fmt.Println("Run `vet ci` to generate CI scripts") fmt.Println("Run `vet ci` to generate CI scripts")
fmt.Println() fmt.Println()
@ -221,7 +223,7 @@ func (r *summaryReporter) renderRemediationAdvice() {
tbl.SetOutputMirror(os.Stdout) tbl.SetOutputMirror(os.Stdout)
tbl.SetStyle(table.StyleLight) tbl.SetStyle(table.StyleLight)
tbl.AppendHeader(table.Row{"Package", "Update To", "Risk Score"}) tbl.AppendHeader(table.Row{"Package", "Update To", "Impact"})
for idx, sp := range sortedPackages { for idx, sp := range sortedPackages {
if idx >= summaryReportMaxUpgradeAdvice { if idx >= summaryReportMaxUpgradeAdvice {
break break
@ -255,7 +257,7 @@ func (r *summaryReporter) packageNameForRemediationAdvice(pkg *models.Package) s
} }
func (r *summaryReporter) vulnSummaryStatement() string { func (r *summaryReporter) vulnSummaryStatement() string {
return fmt.Sprintf("%d critical, %d high and %d other vulnerabilities were identifier", return fmt.Sprintf("%d critical, %d high and %d other vulnerabilities were identified",
r.summary.vulns.critical, r.summary.vulns.high, r.summary.vulns.critical, r.summary.vulns.high,
r.summary.vulns.medium+r.summary.vulns.low) r.summary.vulns.medium+r.summary.vulns.low)
} }