Skip to content

Commit fa9ad75

Browse files
committed
Debugging
1 parent 82c06dc commit fa9ad75

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

main.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,18 @@ async function check_severity_findings(
107107

108108
const findings_data = await findings_response.json();
109109
const count = findings_data.pagination_info?.total_count || 0;
110+
// print raw fidings data for debugging
111+
console.log(
112+
`Found ${count} ${severity} severity findings (results_since: ${effective_results_since})`,
113+
);
114+
console.log(`Findings data: ${JSON.stringify(findings_data)}`);
115+
110116
total_findings += count;
117+
}
111118

112119
if (count > 0) {
113120
return { has_findings: true, total_count: total_findings };
114121
}
115-
}
116122

117123
return { has_findings: false, total_count: 0 };
118124
}

0 commit comments

Comments
 (0)