Skip to content

Commit 2a40dd3

Browse files
committed
feat(tool): fix tool implementation to use json schemas
1 parent 63a460f commit 2a40dd3

File tree

3 files changed

+688
-181
lines changed

3 files changed

+688
-181
lines changed

cve_bin_tool/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ def main(argv=None):
603603
vex_file_path = raw_args.vex_file_to_validate or raw_args.directory
604604

605605
# Import and run validation
606-
exit_code = validate_vex_file(vex_file_path)
606+
exit_code = validate_vex_file(vex_file_path, offline=args.get("offline", False))
607607
return exit_code
608608

609609
configs = {}
@@ -790,7 +790,9 @@ def main(argv=None):
790790
return ERROR_CODES[InsufficientArgs]
791791

792792
# Validate the VEX file
793-
exit_code = validate_vex_file(vex_file_path, LOGGER)
793+
exit_code = validate_vex_file(
794+
vex_file_path, LOGGER, offline=args.get("offline", False)
795+
)
794796
return exit_code
795797

796798
# Offline processing

0 commit comments

Comments
 (0)