Files
pruefwerk/docs/guide/issues.md
T
Sharang ParnerkarandClaude Opus 5.5 6b9de1319c
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
feat(issues): a catch-up files Gitea issues for open findings that never got one (off by default)
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

60 lines
3.9 KiB
Markdown

# Issues & Tracking
Prüfwerk automatically creates issues in your existing issue trackers when new security findings are discovered. This integrates security into your development workflow without requiring teams to check a separate tool.
## How Issues Are Created
When a scan discovers new findings, the following happens automatically:
1. Each new finding is checked against existing issues using its fingerprint
2. If no matching issue exists, a new issue is created in the configured tracker
3. The issue includes the finding title, severity, vulnerability details, file location, and a link back to the finding in Prüfwerk
4. The finding is updated with a link to the external issue
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.
## Issues List
Open **Tickets** (Issues) in the sidebar to see all tracker issues across your targets.
The issues table shows:
| Column | Description |
|--------|-------------|
| Tracker | Badge showing GitHub, GitLab, Gitea, or Jira |
| ID | Issue number in the external system |
| Title | Issue title |
| Status | Open, Closed, or tracker-specific status |
| Created | When the issue was created |
| Link | Direct link to the issue in the external tracker |
Click the link to go directly to the issue in your tracker.
## Supported Trackers
GitHub Issues, GitLab Issues, Gitea Issues and Jira.
The tracker is configured per target. The dashboard has no settings for it yet;
it is set through the API. See
[Connecting an Issue Tracker](/guide/repositories#connecting-an-issue-tracker).
## Deduplication
Issues are deduplicated using the same fingerprint hash that deduplicates findings. This means:
- If the same vulnerability appears in consecutive scans, only one issue is created: issues are created only for new findings
- Before creating an issue, Prüfwerk searches the tracker by fingerprint and then by title, and does not create a second one
- Different findings (even if similar) get separate issues because their fingerprints differ based on rule, file path and line
## Linked Issues in Finding Detail
When viewing a [finding's detail page](/guide/findings#finding-detail), you will see a **Verknüpftes Ticket** (Linked issue) section if an issue was created for that finding. This provides a direct link to the external tracker issue, making it easy to jump between the security context in Prüfwerk and the development workflow in your tracker.