Skip to content

Commit

Permalink
fix: vex generatation and parse test (#4287)
Browse files Browse the repository at this point in the history
  • Loading branch information
mastersans authored Jul 29, 2024
1 parent 353cc4d commit 7d7be28
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ importlib_metadata>=3.6; python_version < "3.10"
importlib_resources; python_version < "3.9"
jinja2>=2.11.3
jsonschema>=3.0.2
lib4sbom>=0.7.0
lib4sbom>=0.7.2
lib4vex>=0.1.0
python-gnupg
packageurl-python
Expand Down
2 changes: 1 addition & 1 deletion test/test_vex.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class TestVexParse:
"CVE-1234-1005": {
"remarks": Remarks.NotAffected,
"comments": "",
"response": [],
"response": "will_not_fix",
"justification": "code_not_reachable",
},
"paths": {},
Expand Down
19 changes: 9 additions & 10 deletions test/vex/test_cyclonedx_vex.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@
},
"affects": [
{
"ref": "urn:cbt:1/vendor0#product0:1.0",
"versions": {
"status": "unknown"
}
"ref": "urn:cbt:1/vendor0#product0:1.0"
}
]
},
Expand All @@ -63,13 +60,17 @@
"updated": "2024-06-14T22:39:24Z",
"analysis": {
"state": "not_affected",
"detail": "Detail field populated.",
"justification": "code_not_reachable"
"detail": "NotAffected: Detail field populated.",
"justification": "code_not_reachable",
"response": [
"will_not_fix"
]
},
"affects": [
{
"ref": "urn:cbt:1/vendor0#product0:1.0",
"versions": {
"version": "1.0",
"status": "unaffected"
}
}
Expand All @@ -93,6 +94,7 @@
{
"ref": "urn:cbt:1/vendor0#product0:2.8.6",
"versions": {
"version": "2.8.6",
"status": "affected"
}
}
Expand All @@ -114,10 +116,7 @@
},
"affects": [
{
"ref": "urn:cbt:1/vendor0#product0:2.8.6",
"versions": {
"status": "unknown"
}
"ref": "urn:cbt:1/vendor0#product0:2.8.6"
}
]
}
Expand Down

0 comments on commit 7d7be28

Please sign in to comment.