Merge pull request #52 from yongyan-gh/users/yongyan-gh/fixSarifOutput

Fix Sarif output relationship target id format.
This commit is contained in:
David A. Wheeler 2021-06-23 21:05:29 -04:00 committed by GitHub
commit 9744995fc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ class SarifLogger(object):
if cwestr:
relationship = {
"target": {
"id": int(cwestr.replace("CWE-", "").replace("!", "")),
"id": cwestr.replace("!", ""),
"toolComponent": {
"name": self.CWE_TAXONOMY_NAME,
"guid": self.CWE_TAXONOMY_GUID,