fix(issues): a skipped scan still catches up the deferred issues
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 / Agent integration (pull_request) Successful in 3m37s
CI / Check (pull_request) Successful in 16m25s

The issue catch-up opens at most 20 issues per target and scan, and ran
only inside a scan. A scheduled scan of a repository without new
commits is skipped, so the rest waited for the next push: on our own
repo 214 findings sat deferred after the first round (dogfooding t49).

When change detection skips a scan, the catch-up now runs on its own,
if it is on (or dry run), the tracker is Gitea, and findings are
waiting for an issue. issue_catchup::waiting answers that with one
query, so an idle repository costs no tracker request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-04 09:34:12 +01:00
1 parent e01d2146e9
commit 59cf2a2c2c
4 files changed
+73 -10

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ This means every actionable finding gets tracked in the same system your develop
### Catch-up for findings without an issue (Gitea)
A scan opens issues only for the findings it finds new, so a finding whose issue could not be opened at the time (Gitea unreachable, the issue refused) stays without one. With `ISSUE_CATCHUP=on`, every scan of a Gitea target then also goes through its open, triaged and to-review findings of severity medium or above that have no issue: one whose issue exists (found by the fingerprint in its body, then by title; a grouped finding by fingerprint only) is linked to it, the others get a new issue. At most 20 new issues per target and scan, highest severity and oldest first; the rest follow in the next scans. `ISSUE_CATCHUP=dry_run` only logs how many issues it would open and link, per severity, and changes nothing. The default is `off`; GitHub, GitLab and Jira are not caught up.
A scan opens issues only for the findings it finds new, so a finding whose issue could not be opened at the time (Gitea unreachable, the issue refused) stays without one. With `ISSUE_CATCHUP=on`, every scan of a Gitea target then also goes through its open, triaged and to-review findings of severity medium or above that have no issue: one whose issue exists (found by the fingerprint in its body, then by title; a grouped finding by fingerprint only) is linked to it, the others get a new issue. At most 20 new issues per target and scan, highest severity and oldest first; the rest follow in the next scans. A scheduled scan that is skipped because the repository has no new commits still runs the catch-up when findings are waiting for an issue, so the rest follow every scan interval, not only after the next push. `ISSUE_CATCHUP=dry_run` only logs how many issues it would open and link, per severity, and changes nothing. The default is `off`; GitHub, GitLab and Jira are not caught up.
### CVE issues (managed repositories)