Skip to content

CVE Scan: Test PR failure reporting UI#16962

Draft
kevinjqliu wants to merge 5 commits into
apache:mainfrom
kevinjqliu:kevinjqliu/codex-cve-scan-ui-test
Draft

CVE Scan: Test PR failure reporting UI#16962
kevinjqliu wants to merge 5 commits into
apache:mainfrom
kevinjqliu:kevinjqliu/codex-cve-scan-ui-test

Conversation

@kevinjqliu

@kevinjqliu kevinjqliu commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

This PR improves the CVE scan failure UX in GitHub Actions.

Background:

What changed:

  • Let the Trivy scan step complete successfully after writing SARIF.
  • Move PR failure handling into Report Trivy scan results, which prints a concise findings table and emits a short PR check annotation.
  • Keep push runs informational while still uploading SARIF to GitHub Security.

Validation:

Screenshot 2026-06-25 at 9 40 07 AM

AI Disclosure

  • Model: GPT-5 Codex
  • Platform/Tool: Codex
  • Human Oversight: partially reviewed
  • Prompt Summary: Improve and test the Apache Iceberg CVE scan GitHub Actions PR failure UI.

Keep the Trivy scan step green so GitHub opens the reporting step that prints the actionable CVE findings, then fail PR runs from that reporting step.

Also remove the Spark 3.5 Jackson CVE ignore entries on this test branch so the PR run exercises the failure UI.

Generated-by: GPT-5 Codex
@github-actions github-actions Bot added the INFRA label Jun 25, 2026
Parse Trivy SARIF messages into a compact table and keep the PR annotation concise so the failed reporting step is easier to read.

Generated-by: GPT-5 Codex
Extract SARIF parsing and report rendering into small shell helpers so the report step is easier to read without changing behavior.

Generated-by: GPT-5 Codex
Restore the Spark 3.5 Jackson CVE ignore entries that were removed only to exercise the PR failure UI.

Generated-by: GPT-5 Codex
Clarify that Trivy always writes SARIF, PRs fail from the reporting step on findings, push runs keep findings informational, and missing or unparseable SARIF is still an error.

Generated-by: GPT-5 Codex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant