Skip to content

Commit

Permalink
expose --include-vulns flag in sbomnix
Browse files Browse the repository at this point in the history
Signed-off-by: andrew-myer <[email protected]>
  • Loading branch information
andrew-myer committed Oct 17, 2024
1 parent 2e910af commit b2c5bf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sbomnix/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def getargs():
parser.add_argument("--version", action="version", version=get_py_pkg_version())
helps = "Set the debug verbosity level between 0-3 (default: --verbose=1)"
parser.add_argument("--verbose", help=helps, type=int, default=1)
helps = "Include vulnerabilities in the output of CyloneDX SBOM"
parser.add_argument("--include-vulns", help=helps, action="store_true")

group = parser.add_argument_group("output arguments")
helps = "Path to csv output file (default: ./sbom.csv)"
Expand Down Expand Up @@ -80,7 +82,7 @@ def main():
buildtime=args.buildtime,
depth=args.depth,
flakeref=flakeref,
include_vulns=True,
include_vulns=args.include_vulns,
)
if args.cdx:
sbomdb.to_cdx(args.cdx)
Expand Down

0 comments on commit b2c5bf4

Please sign in to comment.