[P9] Auto-open Gitea issue when trivy discovers vulnerabilities #107
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
When trivy scans discover HIGH or CRITICAL vulnerabilities in any container image, automatically open a Gitea issue with:
qualityCurrent state
Trivy scans run with
exit_code: 0(non-blocking) and write JSON output. The JSON contains structured vulnerability data but is only uploaded to S3 — nobody reviews it unless they check manually.Plan
report-vulnsstep after each scan that:uv run python -m api.diag.vuln <scan.json>moduleIssue format
Acceptance criteria
api.diag.vulnmodule parses trivy JSON and creates issuesqualitylabel