@@ -39,20 +39,14 @@ type check struct {
3939}
4040
4141var checks = []check {
42- // structural
43- {string (structural ), "sbom_spec" , false , "SBOM Specification" , specCheck },
44- {string (structural ), "sbom_spec_version" , false , "Spec Version" , specVersionCheck },
45- {string (structural ), "sbom_file_format" , false , "SBOM File Format" , sbomFileFormatCheck },
46- {string (structural ), "sbom_parsable" , false , "Spec is parsable" , specParsableCheck },
47-
4842 // ntia minimum
49- {string (ntiam ), "comp_with_supplier" , false , "components have suppliers" , compWithSupplierCheck },
5043 {string (ntiam ), "comp_with_name" , false , "components have a name" , compWithNameCheck },
5144 {string (ntiam ), "comp_with_version" , false , "components have a version" , compWithVersionCheck },
5245 {string (ntiam ), "comp_with_uniq_ids" , false , "components have uniq ids" , compWithUniqIDCheck },
53- {string (ntiam ), "sbom_dependencies" , false , "sbom has dependencies" , sbomWithDepedenciesCheck },
54- {string (ntiam ), "sbom_authors" , false , "sbom has authors" , sbomWithAuthorsCheck },
46+ {string (ntiam ), "comp_with_supplier" , false , "components have suppliers" , compWithSupplierCheck },
5547 {string (ntiam ), "sbom_creation_timestamp" , false , "sbom has creation timestamp" , sbomWithTimeStampCheck },
48+ {string (ntiam ), "sbom_authors" , false , "sbom has authors" , sbomWithAuthorsCheck },
49+ {string (ntiam ), "sbom_dependencies" , false , "primary comp has dependencies" , sbomWithDepedenciesCheck },
5650
5751 // bsi-v1.1
5852 {string (bsiv1_1 ), "comp_with_name" , false , "components have a name" , compWithNameCheck },
@@ -64,36 +58,34 @@ var checks = []check{
6458 {string (bsiv1_1 ), "comp_with_source_code_uri" , false , "components have source code URI" , compWithSourceCodeURICheck },
6559 {string (bsiv1_1 ), "comp_with_source_code_hash" , false , "components have source code hash" , compWithSourceCodeHashCheck },
6660 {string (bsiv1_1 ), "comp_with_executable_uri" , false , "components have executable URI" , compWithExecutableURICheck },
61+ {string (bsiv1_1 ), "comp_with_dependencies" , false , "components have dependencies" , compWithDependencyCheck },
6762 {string (bsiv1_1 ), "spec_with_version_compliant" , false , "SBOM Specification" , specWithVersionCompliant },
68- {string (bsiv1_1 ), "sbom_authors" , false , "sbom has authors" , sbomWithAuthorsCheck },
6963 {string (bsiv1_1 ), "sbom_creation_timestamp" , false , "sbom has creation timestamp" , sbomWithTimeStampCheck },
64+ {string (bsiv1_1 ), "sbom_authors" , false , "sbom has authors" , sbomWithAuthorsCheck },
7065 {string (bsiv1_1 ), "sbom_dependencies" , false , "sbom has dependencies" , sbomWithDepedenciesCheck },
7166 {string (bsiv1_1 ), "sbom_with_uri" , false , "sbom has URI" , sbomWithURICheck },
72- {string (bsiv1_1 ), "comp_with_dependencies" , false , "components have dependencies" , compWithDependencyCheck },
7367
7468 // bsi-v2.0.0
7569 {string (bsiv2_0 ), "comp_with_name" , false , "components have a name" , compWithNameCheck },
7670 {string (bsiv2_0 ), "comp_with_version" , false , "components have a version" , compWithVersionCheck },
7771 {string (bsiv2_0 ), "comp_with_uniq_ids" , false , "components have uniq ids" , bsiCompWithUniqIDCheck },
7872 {string (bsiv2_0 ), "comp_with_supplier" , false , "components have suppliers" , compWithSupplierCheck },
79-
8073 {string (bsiv2_0 ), "comp_with_associated_license" , false , "components have associated licenses" , compWithAssociatedLicensesCheck },
8174 {string (bsiv2_0 ), "comp_with_concluded_license" , false , "components have concluded licenses" , compWithConcludedLicensesCheck },
8275 {string (bsiv2_0 ), "comp_with_declared_license" , false , "components have declared licenses" , compWithDeclaredLicensesCheck },
83- {string (bsiv2_0 ), "comp_with_dependencies" , false , "components have dependencies" , compWithDependencyCheck },
84-
8576 {string (bsiv2_0 ), "comp_with_source_code_uri" , false , "components have source code URI" , compWithSourceCodeURICheck },
8677 {string (bsiv2_0 ), "comp_with_source_code_hash" , false , "components have source code hash" , compWithSourceCodeHashCheck },
8778 {string (bsiv2_0 ), "comp_with_executable_uri" , false , "components have executable URI" , compWithExecutableURICheck },
8879 {string (bsiv2_0 ), "comp_with_executable_hash" , false , "components have executable checksums" , compWithSHA256ChecksumsCheck },
89-
90- {string (bsiv2_0 ), "sbom_with_vuln" , false , "SBOM has vulnerability" , sbomWithVulnCheck },
80+ {string (bsiv2_0 ), "comp_with_dependencies" , false , "components have dependencies" , compWithDependencyCheck },
9181 {string (bsiv2_0 ), "spec_with_version_compliant" , false , "SBOM Specification" , specWithVersionCompliant },
92- {string (bsiv2_0 ), "sbom_build_process" , false , "SBOM build process" , sbomBuildLifecycleCheck },
93- {string (bsiv2_0 ), "sbom_authors" , false , "sbom has authors" , sbomWithAuthorsCheck },
9482 {string (bsiv2_0 ), "sbom_creation_timestamp" , false , "sbom has creation timestamp" , sbomWithTimeStampCheck },
95- {string (bsiv2_0 ), "sbom_dependencies" , false , "primary comp has dependencies" , sbomWithDepedenciesCheck },
83+ {string (bsiv2_0 ), "sbom_authors" , false , "sbom has authors" , sbomWithAuthorsCheck },
84+ {string (bsiv2_0 ), "sbom_build_process" , false , "SBOM build process" , sbomBuildLifecycleCheck },
9685 {string (bsiv2_0 ), "sbom_with_uri" , false , "sbom has URI" , sbomWithURICheck },
86+ {string (bsiv2_0 ), "sbom_dependencies" , false , "primary comp has dependencies" , sbomWithDepedenciesCheck },
87+ {string (bsiv2_0 ), "sbom_with_bomlinks" , false , "sbom has bomlinks" , sbomWithBomLinksCheck },
88+ {string (bsiv2_0 ), "sbom_with_vuln" , false , "SBOM has vulnerability" , sbomWithVulnCheck },
9789 {string (bsiv2_0 ), "sbom_with_signature" , false , "sbom has signature" , sbomWithSignatureCheck },
9890
9991 // semantic
@@ -113,4 +105,10 @@ var checks = []check{
113105
114106 // sharing
115107 {string (sharing ), "sbom_sharable" , false , "sbom document has a sharable license" , sharableLicenseCheck },
108+
109+ // structural
110+ {string (structural ), "sbom_spec" , false , "SBOM Specification" , specCheck },
111+ {string (structural ), "sbom_spec_version" , false , "Spec Version" , specVersionCheck },
112+ {string (structural ), "sbom_file_format" , false , "SBOM File Format" , sbomFileFormatCheck },
113+ {string (structural ), "sbom_parsable" , false , "Spec is parsable" , specParsableCheck },
116114}
0 commit comments