示例#1
0
def _run_internal_analyzers(analyzer_report, unpackdir):
    allpkgfiles = utils.dig(
        analyzer_report, "package_list", "pkgfiles.all", "base", force_default=[]
    )

    results = binary.catalog_image(allpkgfiles=allpkgfiles, unpackdir=unpackdir)

    utils.merge_nested_dict(analyzer_report, results)
示例#2
0
def _run_syft(analyzer_report, copydir):
    results = syft.catalog_image(imagedir=copydir)

    utils.merge_nested_dict(analyzer_report, results)
示例#3
0
def _run_syft(analyzer_report, copydir, package_filtering_enabled=True):
    results = syft.catalog_image(
        imagedir=copydir, package_filtering_enabled=package_filtering_enabled)

    utils.merge_nested_dict(analyzer_report, results)