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)
def _run_syft(analyzer_report, copydir): results = syft.catalog_image(imagedir=copydir) utils.merge_nested_dict(analyzer_report, results)
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)