The path to a pip requirements file, default is "./requirements.txt"
Be sure to quote paths with spaces.
Output filename, default is "./bom.xml"
Be sure to quote paths with spaces.
Output format, one of "json"/"xml", default is "xml"
- name: Generate Python SBOM
uses: CycloneDX/gh-python-generate-sbom@v2
with:
input: ./requirements.txt
output: ./bom.json
format: json
This GitHub ation depends on cyclonedx-bom>=1.4.0,<4
.
See cyclonedx-bom
on PyPI.