We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a118f commit fc2634fCopy full SHA for fc2634f
1 file changed
dojo/tools/gosec/parser.py
@@ -47,7 +47,7 @@ def get_findings(self, filename, test):
47
if cwe_data:
48
cwe_id_str = cwe_data.get("id")
49
if cwe_id_str:
50
- cwe_id = int(cwe_id_str)
+ cwe_id = int(cwe_id_str) if cwe_id_str.isdigit() else None
51
cwe_url = cwe_data.get("url")
52
if cwe_url:
53
references = cwe_url
0 commit comments