Skip to content

Commit 0d874e6

Browse files
Fix endor_components_remove
1 parent a619582 commit 0d874e6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

etc/sbom/config.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# ################ Component Filters ################
1313

1414
# List of Endor Labs SBOM components that must be removed before processing
15-
endor_components_remove = [
15+
components_remove = [
1616
# A dependency erroneously matched in build/CMakeFiles
1717
'mozilla/cubeb',
1818
# An incorrect match from parts of pkg:github/madler/zlib
@@ -26,9 +26,10 @@
2626
'pkg:github/',
2727
]
2828

29-
for component in endor_components_remove:
29+
endor_components_remove=[]
30+
for component in components_remove:
3031
for prefix in prefixes:
31-
component = prefix + component
32+
endor_components_remove.append(prefix + component)
3233

3334
# ################ Component Renaming ################
3435
# Endor does not have syntactically valid PURLs for C/C++ packages.

etc/sbom/generate_sbom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ def main() -> None:
533533
logger.error('Check Endor Labs for status of the target monitoring scan.')
534534
sys.exit(1)
535535

536+
logger.info(f'Endor Labs SBOM exported with {len(endor_bom["components"])} components')
536537
# endregion export Endor Labs SBOM
537538

538539
# region Pre-process Endor Labs SBOM

0 commit comments

Comments
 (0)