From 19b02a7b2a0460dbde68f99e340a2ea3b0f76991 Mon Sep 17 00:00:00 2001 From: Pavel Nakonechnyi Date: Fri, 2 Aug 2024 11:31:22 +0200 Subject: [PATCH] t --- dojo/tools/trivy_operator/checks_handler.py | 2 +- dojo/tools/trivy_operator/secrets_handler.py | 2 +- dojo/tools/trivy_operator/vulnerability_handler.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dojo/tools/trivy_operator/checks_handler.py b/dojo/tools/trivy_operator/checks_handler.py index dd9e7ba5f2..9c7c7ecc16 100644 --- a/dojo/tools/trivy_operator/checks_handler.py +++ b/dojo/tools/trivy_operator/checks_handler.py @@ -62,6 +62,6 @@ def handle_checks(self, endpoints, service, checks, test): ) if check_id: finding.unsaved_vulnerability_ids = [check_id] - finding.unsaved_endpoints.append(endpoints) + finding.unsaved_endpoints += endpoints findings.append(finding) return findings diff --git a/dojo/tools/trivy_operator/secrets_handler.py b/dojo/tools/trivy_operator/secrets_handler.py index bdc1cd31e9..4a5ae2345b 100644 --- a/dojo/tools/trivy_operator/secrets_handler.py +++ b/dojo/tools/trivy_operator/secrets_handler.py @@ -45,6 +45,6 @@ def handle_secrets(self, endpoints, service, secrets, test): ) if secret_rule_id: finding.unsaved_vulnerability_ids = [secret_rule_id] - finding.unsaved_endpoints.append(endpoints) + finding.unsaved_endpoints += endpoints findings.append(finding) return findings diff --git a/dojo/tools/trivy_operator/vulnerability_handler.py b/dojo/tools/trivy_operator/vulnerability_handler.py index bdd5721b8d..4f31fb01af 100644 --- a/dojo/tools/trivy_operator/vulnerability_handler.py +++ b/dojo/tools/trivy_operator/vulnerability_handler.py @@ -87,6 +87,6 @@ def handle_vulns(self, endpoints, service, vulnerabilities, test): ) if vuln_id: finding.unsaved_vulnerability_ids = [vuln_id] - finding.unsaved_endpoints.append(endpoints) + finding.unsaved_endpoints += endpoints findings.append(finding) return findings