Skip to content

fix(coverity-api): add support for RESOURCE_LEAK quality findings#14749

Open
Jino-T wants to merge 1 commit intoDefectDojo:bugfixfrom
Jino-T:coverity-resource-leak-bugfix
Open

fix(coverity-api): add support for RESOURCE_LEAK quality findings#14749
Jino-T wants to merge 1 commit intoDefectDojo:bugfixfrom
Jino-T:coverity-resource-leak-bugfix

Conversation

@Jino-T
Copy link
Copy Markdown
Contributor

@Jino-T Jino-T commented Apr 24, 2026

[sc-12941]

Summary

  • Extends the Coverity API parser to import RESOURCE_LEAK findings where displayIssueKind is Quality, in addition to the existing Security findings
  • All other Quality checkers (e.g. NULL_RETURNS, FORWARD_NULL) remain excluded
  • RESOURCE_LEAK findings are parsed with the same fields as security findings: title, severity, cwe, file_path, date, unique_id_from_tool, nb_occurences, active/verified

Test plan

  • Updated existing tests to reflect new finding counts across few_findings.json, few_findings_triaged_as_bug.json, and few_findings_mitigated.json
  • Added assertions verifying RESOURCE_LEAK finding fields (title, severity High, CWE 404, file path, date, active/verified state)
  • Added new fixture only_non_resource_leak_quality.json (NULL_RETURNS/FORWARD_NULL only) so the test_parse_only_quality test continues to assert 0 findings for non-RESOURCE_LEAK quality checkers
  • All 6 unit tests pass

🤖 Generated with Claude Code

Extend the Coverity API parser to import findings with checker
RESOURCE_LEAK and displayIssueKind Quality, in addition to the
existing Security findings. Update tests to reflect the new counts
and add assertions covering RESOURCE_LEAK field values.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants