Fix Sarif output relationship target id format.
This commit is contained in:
parent
53ad19bb3b
commit
62b9b509a0
|
@ -250,7 +250,7 @@ class SarifLogger(object):
|
||||||
if cwestr:
|
if cwestr:
|
||||||
relationship = {
|
relationship = {
|
||||||
"target": {
|
"target": {
|
||||||
"id": int(cwestr.replace("CWE-", "").replace("!", "")),
|
"id": cwestr.replace("!", ""),
|
||||||
"toolComponent": {
|
"toolComponent": {
|
||||||
"name": self.CWE_TAXONOMY_NAME,
|
"name": self.CWE_TAXONOMY_NAME,
|
||||||
"guid": self.CWE_TAXONOMY_GUID,
|
"guid": self.CWE_TAXONOMY_GUID,
|
||||||
|
|
Loading…
Reference in New Issue