Skip to content

Commit b75a94a

Browse files
committed
update empty table message for build scan
1 parent 10a23d7 commit b75a94a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/results/output/resultwriter.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@ func PrintVulnerabilitiesTable(tables formats.ResultsTables, cmdType utils.Comma
330330
)
331331
}
332332
emptyTableMessage := "✨ No vulnerable dependencies were found ✨"
333-
if !techDetected {
333+
// For build scan, the scan runs server-side so an empty table always means 0 vulnerabilities.
334+
// Only show the package-manager message for non-build flows where no tech was detected locally.
335+
if !techDetected && cmdType != utils.Build {
334336
emptyTableMessage = coreutils.PrintYellow("🔧 Couldn't determine a package manager or build tool used by this project 🔧")
335337
}
336338
return coreutils.PrintTable(tables.SecurityVulnerabilitiesTable, "Vulnerable Dependencies", emptyTableMessage, printExtended)

0 commit comments

Comments
 (0)