Skip to content

Commit

Permalink
[bugfix] Update whispers parser references field type (#8596)
Browse files Browse the repository at this point in the history
* Update parser.py

Field type mismatch is preventing results from being imported correctly.

adeptex/whispers#100

This change resolves the issue.

* Lint
  • Loading branch information
adeptex authored Sep 7, 2023
1 parent 5244e38 commit 51b732b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dojo/tools/whispers/parser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json

from dojo.models import Endpoint, Finding
from dojo.models import Finding


class WhispersParser(object):
Expand Down Expand Up @@ -52,9 +52,7 @@ def get_findings(self, file, test):
"Supply the new secret through a placeholder to avoid disclosing "
"sensitive information in code."
),
references=Endpoint.from_uri(
"https://cwe.mitre.org/data/definitions/798.html"
),
references="https://cwe.mitre.org/data/definitions/798.html",
cwe=798,
severity=self.SEVERITY_MAP.get(
vuln.get("severity"), "Info"
Expand Down

0 comments on commit 51b732b

Please sign in to comment.