Skip to content

Commit

Permalink
gh-112302: Add Software Bill-of-Materials (SBOM) tracking for depende…
Browse files Browse the repository at this point in the history
…ncies (#112303)
  • Loading branch information
sethmlarson committed Dec 7, 2023
1 parent 2d76be2 commit 21221c3
Show file tree
Hide file tree
Showing 7 changed files with 2,499 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -190,3 +190,7 @@ Doc/howto/clinic.rst @erlend-aasland

# WebAssembly
/Tools/wasm/ @brettcannon

# SBOM
/Misc/sbom.spdx.json @sethmlarson
/Tools/build/generate_sbom.py @sethmlarson
2 changes: 2 additions & 0 deletions .github/workflows/mypy.yml
Expand Up @@ -9,6 +9,7 @@ on:
paths:
- ".github/workflows/mypy.yml"
- "Lib/test/libregrtest/**"
- "Tools/build/generate_sbom.py"
- "Tools/cases_generator/**"
- "Tools/clinic/**"
- "Tools/peg_generator/**"
Expand All @@ -34,6 +35,7 @@ jobs:
matrix:
target: [
"Lib/test/libregrtest",
"Tools/build/",
"Tools/cases_generator",
"Tools/clinic",
"Tools/peg_generator",
Expand Down
6 changes: 5 additions & 1 deletion Makefile.pre.in
Expand Up @@ -1359,7 +1359,7 @@ regen-unicodedata:
regen-all: regen-cases regen-typeslots \
regen-token regen-ast regen-keyword regen-sre regen-frozen \
regen-pegen-metaparser regen-pegen regen-test-frozenmain \
regen-test-levenshtein regen-global-objects
regen-test-levenshtein regen-global-objects regen-sbom
@echo
@echo "Note: make regen-stdlib-module-names, make regen-limited-abi, "
@echo "make regen-configure and make regen-unicodedata should be run manually"
Expand Down Expand Up @@ -2651,6 +2651,10 @@ autoconf:
regen-configure:
$(srcdir)/Tools/build/regen-configure.sh

.PHONY: regen-sbom
regen-sbom:
$(PYTHON_FOR_REGEN) $(srcdir)/Tools/build/generate_sbom.py

# Create a tags file for vi
tags::
ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/cpython/*.h $(srcdir)/Include/internal/*.h
Expand Down
@@ -0,0 +1,2 @@
Created a Software Bill-of-Materials document and tooling for tracking
dependencies.

0 comments on commit 21221c3

Please sign in to comment.