Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/detect/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const TABLE_HEADER = '| Policies Violated | Dependency | License(s) | Vul
export async function createRapidScanReportString(policyViolations: IRapidScanResults[], policyCheckWillFail: boolean): Promise<string> {
let message = ''
if (policyViolations.length == 0) {
message = message.concat('# :white_check_mark: None of your dependencies violate policy!')
message = message.concat('# :white_check_mark: None of your dependencies violate your Black Duck policies!')
} else {
const violationSymbol = policyCheckWillFail ? ':x:' : ':warning:'
message = message.concat(`# ${violationSymbol} Found dependencies violating policy!\r\n\r\n`)
message = message.concat(`# ${violationSymbol} Found dependencies violating your Black Duck policy!\r\n\r\n`)

const componentReports = await createRapidScanReport(policyViolations)
const tableBody = componentReports.map(componentReport => createComponentRow(componentReport)).join('\r\n')
Expand Down