Skip to content

Commit

Permalink
Add 'cyclonedx' short name for CycloneDX output writer
Browse files Browse the repository at this point in the history
  • Loading branch information
nightlark committed Dec 28, 2023
1 parent 7a1595c commit d024ad6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions surfactant/output/cyclonedx_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ def write_sbom(sbom: SBOM, outfile) -> None:
outfile.write(outputter.output_as_string())


@surfactant.plugin.hookimpl
def short_name() -> Optional[str]:
return "cyclonedx"


def convert_system_to_cyclonedx_component(system: System) -> Tuple[str, Component]:
"""Converts a system entry in the SBOM to a CycloneDX Component.
Expand Down

0 comments on commit d024ad6

Please sign in to comment.