Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ async function main() {
for (const f of response.new ?? []) {
console.error(` NEW [${f.severity}] ${f.title}${f.file ? ` (${f.file}${f.line != null ? `:${f.line}` : ""})` : ""}${f.taskId ? ` → task ${f.taskId}` : ""}`);
}
// Findings were accepted but never became work — the run would otherwise look
// clean while nothing lands in anyone's queue.
if (s.taskFailures) {
console.error(`cerberus: WARNING — ${s.taskFailures} finding(s) could not be turned into tasks: ${response.taskError ?? "unknown error"}`);
}

const gate = evaluateGate(config.gate.failOn, response);
if (gate.failed) {
Expand Down
3 changes: 3 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export interface UploadResponse {
baseline?: boolean;
truncated?: boolean;
error?: string;
/** Set when the backend accepted findings but could not turn them into work. */
taskError?: string;
summary?: {
total: number;
new: number;
Expand All @@ -65,6 +67,7 @@ export interface UploadResponse {
fixed: number;
reopened: number;
tasksCreated: number;
taskFailures?: number;
};
new?: Array<{
title: string;
Expand Down
Loading