Skip to content

Commit 9788a02

Browse files
committed
Generate and archive sboms
1 parent af6928c commit 9788a02

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
NUITKA_CCACHE_BINARY: /usr/bin/ccache
8181
run: |
8282
pip install .[build]
83+
python script/create_sbom.py
8384
python script/build.py
8485
python script/package.py
8586
@@ -92,6 +93,7 @@ jobs:
9293
build/dfetch-package/*.rpm
9394
build/dfetch-package/*.pkg
9495
build/dfetch-package/*.msi
96+
*.cdx.json
9597
9698
test-binary:
9799
name: test binary

script/create_sbom.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""Generate an sbom of the tool."""
33
import contextlib
44
import logging
5-
import subprocess
5+
import subprocess # nosec
66
import sys
77
import tempfile
88
import venv
@@ -35,8 +35,8 @@ def temporary_venv():
3535

3636

3737
with temporary_venv() as python:
38-
subprocess.check_call([python, "-m", "pip", "install", DEPS])
39-
subprocess.check_call(
38+
subprocess.check_call([python, "-m", "pip", "install", DEPS]) # nosec
39+
subprocess.check_call( # nosec
4040
[python, "-m", "cyclonedx_py", "environment", "-o", str(OUTPUT_FILE)]
4141
)
4242

0 commit comments

Comments
 (0)