Skip to content

Commit a6efc96

Browse files
Upgrade SBOM tooling for Python 3.13+ support (#306)
* Upgrade SBOM tooling for Python 3.13+ support - cyclonedx-bom 3.11.7 → 7.2.2 (3.x doesn't support Python 3.13) - cyclonedx-cli v0.24.2 → v0.30.0 (CycloneDX v1.7 / SPDX 2.3) - Update CLI invocation: `cyclonedx-py --e --format json` → `cyclonedx-py environment` (the `--e` flag became the `environment` subcommand; JSON is the default output format) * Bump GitHub Actions to current versions - actions/checkout v2 → v4 - actions/setup-python v2 → v5
1 parent a28cfee commit a6efc96

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/actions/sbom-convert/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ runs:
44
steps:
55
- name: Install CycloneDX
66
run: |
7-
wget https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.24.2/cyclonedx-linux-x64
7+
wget https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.30.0/cyclonedx-linux-x64
88
chmod a+x cyclonedx-linux-x64
99
shell: bash
1010
- name: Convert SBOM

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Python
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: '3.x'
2121
- name: Install dependencies
@@ -24,8 +24,8 @@ jobs:
2424
pip install setuptools wheel twine
2525
- name: Generate SBOM
2626
run: |
27-
pip install cyclonedx-bom==3.11.7
28-
cyclonedx-py --e --format json -o cyclonedx-sbom.json
27+
pip install cyclonedx-bom==7.2.2
28+
cyclonedx-py environment -o cyclonedx-sbom.json
2929
- name: Convert SBOM
3030
uses: duosecurity/duo_client_python/.github/actions/sbom-convert@master
3131
- name: Build and publish

0 commit comments

Comments
 (0)