Skip to content

Commit 44aae92

Browse files
r-oldenburgschurzi
andauthored
Apply suggestions from code review
Co-authored-by: Martin Schurz <github@drachen-server.de>
1 parent f24c01e commit 44aae92

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ analysis and tracking.
99
## Features
1010

1111
* Monitor Kubernetes for new Trivy vulnerability reports.
12+
* Intercept and modify reports (e.g., for custom deduplication or enrichment) before upload.
1213
* Push vulnerability reports to a configured Defect Dojo instance.
13-
* **Transformation Hook**: Intercept and modify reports (e.g., for custom deduplication or enrichment) before upload.
1414
* Seamless integration with your existing Kubernetes cluster and security workflow.
1515
* Developed using the Pythonic Kopf framework for easy maintenance and extensibility.
1616

src/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def send_to_dojo(body, meta, logger, **_):
203203
_DEFECT_DOJO_TAGS = (
204204
eval(settings.DEFECT_DOJO_TAGS)
205205
if settings.DEFECT_DOJO_EVAL_TAGS
206-
else (settings.DEFECT_DOJO_TAGS.split(",") if settings.DEFECT_DOJO_TAGS else [])
206+
else (list(filter(None, settings.DEFECT_DOJO_TAGS.split(","))))
207207
)
208208

209209
logger.info(f"DefectDojo Config - Engagement: {_DEFECT_DOJO_ENGAGEMENT_NAME}, Test: {_DEFECT_DOJO_TEST_TITLE}, Service: {_DEFECT_DOJO_SERVICE_NAME}")

0 commit comments

Comments
 (0)