Skip to content
Merged
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
11 changes: 10 additions & 1 deletion .github/scripts/cve-delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,16 @@ def render_list(label: str, items: list) -> None:
total_r = severity_counts(total_removed)
print("# CVE delta\n")
if not previous_files:
print("_No previous scan to diff against — this is a baseline run._\n")
print("_No previous scan to diff against — this is a baseline run; "
"nothing to compare against, so no regression can be detected._\n")
if per_image_lines:
print("## Per-image CVEs (informational)\n")
print("\n".join(per_image_lines))
# No prior state exists, so the PR cannot have *introduced* a CVE
# regression. Report the findings but never hard-fail here — otherwise
# every brand-new image (which by definition has no base scan) trips
# the gate. New images are reviewed when their template is added.
return 0
elif changed_images == 0:
print("**No changes.** Every image's CVE set is identical to the previous scan.\n")
return 0
Expand Down