feat(issues): a catch-up files Gitea issues for open findings that never got one (off by default) (#553)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Successful in 6m35s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 8m58s
CI / Deploy MCP (push) Successful in 2m54s

This commit was merged in pull request #553.
This commit is contained in:
sharang committed 2026-10-09 16:08:23 +00:00
1 parent 7e3856db31
commit e382746cfb
8 files changed
+912 -149

No files matched your search

+4
View File
@@ -13,6 +13,10 @@ When a scan discovers new findings, the following happens automatically:
This means every actionable finding gets tracked in the same system your developers already use.
### 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.
### CVE issues (managed repositories)
For a repository from a managed git source, known vulnerabilities in its dependencies become issues too: one per package and CVE, labelled `cve`. A critical or high CVE opens one, and so does any CVE in CISA's Known Exploited Vulnerabilities catalog (rated at least high). A CVE whose EPSS percentile reaches `CVE_ISSUE_EPSS_PERCENTILE` (default `0.95`) is rated one step higher, so a medium one opens an issue as high. The issue names the KEV entry, the EPSS score with its attribution, and CISA's SSVC exploitation where known. When a complete scan no longer finds the CVE, the issue is closed; when it comes back, it is reopened.