feat(issues): a catch-up files Gitea issues for open findings that never got one (off by default) #553

Merged
sharang merged 1 commits from feat/issue-catchup into main 2026-10-09 16:08:24 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 6b9de1319c feat(issues): a catch-up files Gitea issues for open findings that never got one (off by default)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 11m22s
Issue creation only covers a scan's new findings, so a finding whose issue
failed (a failed listing, a refused create) never got one. ISSUE_CATCHUP
(off | dry_run | on, default off; unknown values warn and stay off) adds a
catch-up after a Gitea target's normal issue creation, on the same listing:
open/triaged/needs-review findings of medium or above without
tracker_issue_url are linked to their existing issue (marker, then title;
groups by fingerprint only) or get a new one, at most 20 new per target and
scan, highest severity then oldest first; the rest are deferred. dry_run
only counts. One INFO summary line per target with counts and severities.

Issue creation and the catch-up share one IssueSink: it opens an issue,
ensures the managed labels lazily on the first create, and records the
issue on the finding plus a tracker_issues record (upserted per finding),
so a linked issue follows the finding's status like an opened one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-09 17:53:14 +02:00