Skip to content

Commit dbd4c6e

Browse files
authored
Merge pull request #28 from sodgeit/compliance-with-us-and-german-guidelines
Compliance with US and German federal guidelines
2 parents fdfcf40 + 9a219f3 commit dbd4c6e

15 files changed

+766
-713
lines changed

.github/workflows/cmake-multi-platform.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
push:
77
branches: [ "main" ]
88
pull_request:
9-
branches: [ "main" ]
109

1110
jobs:
1211
build:
@@ -52,13 +51,17 @@ jobs:
5251
- name: setup python
5352
uses: actions/setup-python@v3
5453
with:
55-
python-version: "3.10"
54+
python-version: "3.12"
5655

5756
- name: Install spdx-tools
5857
run: |
5958
python -m pip install --upgrade pip
6059
pip install spdx-tools
6160
61+
- name: Validate example sbom
62+
run: |
63+
pyspdxtools -i ${{ github.workspace }}/example/output/*.spdx
64+
6265
- name: Configure CMake
6366
run: >
6467
cmake -B ${{ steps.strings.outputs.build-output-dir }}

cmake/sbom.cmake

+263-267
Large diffs are not rendered by default.

doc/full_signature.md

+329
Large diffs are not rendered by default.

example/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ sbom_generate(
3939
PACKAGE_DOWNLOAD "http://example.org/download"
4040
PACKAGE_LICENSE "MIT"
4141
PACKAGE_NOTES SUMMARY "Just a simple example project, to demonstrate the SBOM-Builder"
42-
PACKAGE_PURPOSE "APPLICATION" "OTHER"
42+
PACKAGE_PURPOSE "APPLICATION"
4343
)
4444

4545
# mention the dependencies used in the SBOM

example/output/Example-sbom-0.3.0.spdx

+27-29
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DocumentNamespace: https://github.com/sodgeit/CMake-SBOM-Builder/spdxdocs/Exampl
66
Creator: Organization: Example Org ([email protected])
77
Creator: Tool: CMake-SBOM-Builder-v0.3.0
88
CreatorComment: <text>This SPDX document was created from CMake 3.30.1, using CMake-SBOM-Builder from https://github.com/sodgeit/CMake-SBOM-Builder</text>
9-
Created: 2024-08-29T09:16:55Z
9+
Created: 2024-09-17T15:30:54Z
1010

1111
PackageName: Clang
1212
SPDXID: SPDXRef-compiler
@@ -26,7 +26,7 @@ RelationshipComment: <text>SPDXRef-Example is built by compiler Clang (C:/Progra
2626
PackageName: Example
2727
SPDXID: SPDXRef-Example
2828
ExternalRef: SECURITY cpe23Type cpe:2.3:o:microsoft:windows_10:-:*:*:*:*:*:x64:*
29-
ExternalRef: PACKAGE-MANAGER purl pkg:supplier/Example/[email protected]
29+
ExternalRef: PACKAGE-MANAGER purl pkg:supplier/Example-Org/[email protected]
3030
PackageVersion: v0.3.0
3131
PackageFileName: Example-v0.3.0.zip
3232
PackageSupplier: Organization: Example Org ([email protected])
@@ -37,60 +37,58 @@ PackageCopyrightText: 2024 Example Org
3737
PackageHomePage: https://github.com/sodgeit/CMake-SBOM-Builder
3838
PackageSummary: <text>Just a simple example project, to demonstrate the SBOM-Builder</text>
3939
PackageComment: <text>Built by CMake 3.30.1 with Release configuration for Windows (AMD64)</text>
40-
PackageVerificationCode: eab840722ebab9379e046b88ce0e6f6f616a2eb6
41-
BuiltDate: 2024-08-29T09:16:55Z
40+
PrimaryPackagePurpose: APPLICATION
41+
PackageVerificationCode: ae2f5127406146b9ab607f1ede155bca519ba872
42+
BuiltDate: 2024-09-17T15:30:54Z
43+
ReleaseDate: 2024-09-17T15:30:54Z
4244
Relationship: SPDXRef-DOCUMENT DESCRIBES SPDXRef-Example
4345

4446
PackageName: cxxopts
4547
SPDXID: SPDXRef-cxxopts-0
46-
ExternalRef: SECURITY cpe23Type cpe:2.3:o:microsoft:windows_10:-:*:*:*:*:*:x64:*
47-
PackageDownloadLocation: NOASSERTION
48+
PackageLicenseConcluded: MIT
4849
PackageLicenseDeclared: NOASSERTION
49-
PackageCopyrightText: NOASSERTION
5050
PackageVersion: 3.2.0
51-
PackageSupplier: Jarryd Beck (https://github.com/jarro2783/cxxopts)
52-
FilesAnalyzed: false
53-
PackageLicenseConcluded: MIT
51+
PackageSupplier: Person: Jarryd Beck
52+
PackageDownloadLocation: NOASSERTION
53+
PackageCopyrightText: NOASSERTION
5454
Relationship: SPDXRef-Example DEPENDS_ON SPDXRef-cxxopts-0
5555
Relationship: SPDXRef-cxxopts-0 CONTAINS NOASSERTION
5656

5757
PackageName: Boost
5858
SPDXID: SPDXRef-Boost-1
59-
ExternalRef: SECURITY cpe23Type cpe:2.3:o:microsoft:windows_10:-:*:*:*:*:*:x64:*
60-
PackageDownloadLocation: NOASSERTION
59+
PackageLicenseConcluded: BSL-1.0
6160
PackageLicenseDeclared: NOASSERTION
62-
PackageCopyrightText: NOASSERTION
6361
PackageVersion: 1.85.0
64-
PackageSupplier: https://www.boost.org
65-
FilesAnalyzed: false
66-
PackageLicenseConcluded: BSL-1.0
62+
PackageSupplier: Organization: Boost Foundation
63+
PackageDownloadLocation: NOASSERTION
64+
PackageCopyrightText: NOASSERTION
6765
Relationship: SPDXRef-Example DEPENDS_ON SPDXRef-Boost-1
6866
Relationship: SPDXRef-Boost-1 CONTAINS NOASSERTION
6967

7068
FileName: ./include/Example_version.h
7169
SPDXID: SPDXRef-include-Example-version-h-2
70+
LicenseConcluded: MIT
7271
FileType: SOURCE
73-
FileChecksum: SHA1: d8531f8bb2896353ae13c24ec84324ebbc11a1e4
74-
LicenseConcluded: NOASSERTION
75-
LicenseInfoInFile: NOASSERTION
76-
FileCopyrightText: NOASSERTION
72+
FileCopyrightText: 2024 Example Org
73+
FileChecksum: SHA1: 431efda6e36ca14a3a71892fb5e94582f713b95f
74+
FileChecksum: SHA256: 81e62d1f1c32a1b055aca45f75f8e167cc53c14beb70cae6b5bc92949f1cba20
7775
Relationship: SPDXRef-Example CONTAINS SPDXRef-include-Example-version-h-2
7876

7977
FileName: ./share/example/version.txt
8078
SPDXID: SPDXRef-share-example-version-txt-3
81-
FileType: DOCUMENTATION
79+
LicenseConcluded: MIT
8280
FileType: TEXT
83-
FileChecksum: SHA1: ad9f5f85711c66b6fce6975f6b7c489863e60974
84-
LicenseConcluded: NOASSERTION
85-
LicenseInfoInFile: NOASSERTION
86-
FileCopyrightText: NOASSERTION
81+
FileType: DOCUMENTATION
82+
FileCopyrightText: 2024 Example Org
83+
FileChecksum: SHA1: ef8ae947da2dd7b37cc1e186c42975c702ec6fbe
84+
FileChecksum: SHA256: 7836146189efb5232dc27bb99a67f9b9eec407463cf022d55cd9f9fb111d6ebb
8785
Relationship: SPDXRef-Example CONTAINS SPDXRef-share-example-version-txt-3
8886

8987
FileName: ./bin/example.exe
9088
SPDXID: SPDXRef-bin-TARGET-FILE-NAME-example-4
89+
LicenseConcluded: MIT
9190
FileType: BINARY
92-
FileChecksum: SHA1: eaf3cf61d5fdccd5fc90dbfe6ec3aa4da3641754
93-
LicenseConcluded: NOASSERTION
94-
LicenseInfoInFile: NOASSERTION
95-
FileCopyrightText: NOASSERTION
91+
FileCopyrightText: 2024 Example Org
92+
FileChecksum: SHA1: a91168ee725c567ecdcb20b1e2dfafb7cb8c8f89
93+
FileChecksum: SHA256: af9c28ab48f7f5a3c26d100da127ea77f594447c0f30a8231e348d37f8ded424
9694
Relationship: SPDXRef-Example CONTAINS SPDXRef-bin-TARGET-FILE-NAME-example-4

0 commit comments

Comments
 (0)