Skip to content

Commit 21221c3

Browse files
authored
gh-112302: Add Software Bill-of-Materials (SBOM) tracking for dependencies (#112303)
1 parent 2d76be2 commit 21221c3

File tree

7 files changed

+2499
-1
lines changed

7 files changed

+2499
-1
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,7 @@ Doc/howto/clinic.rst @erlend-aasland
190190

191191
# WebAssembly
192192
/Tools/wasm/ @brettcannon
193+
194+
# SBOM
195+
/Misc/sbom.spdx.json @sethmlarson
196+
/Tools/build/generate_sbom.py @sethmlarson

.github/workflows/mypy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
paths:
1010
- ".github/workflows/mypy.yml"
1111
- "Lib/test/libregrtest/**"
12+
- "Tools/build/generate_sbom.py"
1213
- "Tools/cases_generator/**"
1314
- "Tools/clinic/**"
1415
- "Tools/peg_generator/**"
@@ -34,6 +35,7 @@ jobs:
3435
matrix:
3536
target: [
3637
"Lib/test/libregrtest",
38+
"Tools/build/",
3739
"Tools/cases_generator",
3840
"Tools/clinic",
3941
"Tools/peg_generator",

Makefile.pre.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ regen-unicodedata:
13591359
regen-all: regen-cases regen-typeslots \
13601360
regen-token regen-ast regen-keyword regen-sre regen-frozen \
13611361
regen-pegen-metaparser regen-pegen regen-test-frozenmain \
1362-
regen-test-levenshtein regen-global-objects
1362+
regen-test-levenshtein regen-global-objects regen-sbom
13631363
@echo
13641364
@echo "Note: make regen-stdlib-module-names, make regen-limited-abi, "
13651365
@echo "make regen-configure and make regen-unicodedata should be run manually"
@@ -2651,6 +2651,10 @@ autoconf:
26512651
regen-configure:
26522652
$(srcdir)/Tools/build/regen-configure.sh
26532653

2654+
.PHONY: regen-sbom
2655+
regen-sbom:
2656+
$(PYTHON_FOR_REGEN) $(srcdir)/Tools/build/generate_sbom.py
2657+
26542658
# Create a tags file for vi
26552659
tags::
26562660
ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/cpython/*.h $(srcdir)/Include/internal/*.h
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Created a Software Bill-of-Materials document and tooling for tracking
2+
dependencies.

0 commit comments

Comments
 (0)