Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
268 commits
Select commit Hold shift + click to select a range
0427839
Added further optimization to minified version
stevespringett Nov 12, 2025
8668856
chore: update bundled schemas [skip ci]
github-actions[bot] Nov 12, 2025
7a04e95
Modified risk and model schemas
petra-dv Nov 23, 2025
c46624c
Fixed resolution issues
stevespringett Nov 24, 2025
ed3eb38
chore: update bundled schemas [skip ci]
github-actions[bot] Nov 24, 2025
7aceff4
Added ref verification
stevespringett Nov 24, 2025
70ea2fa
Merge remote-tracking branch 'origin/2.0-dev' into 2.0-dev
stevespringett Nov 24, 2025
dd45ceb
Updated JSON Schema for Humans
stevespringett Nov 25, 2025
b8abb0c
Initial commit of CycloneDX linter
stevespringett Nov 29, 2025
f0c447b
Moved bundler
stevespringett Nov 29, 2025
41ad354
Added lock file
stevespringett Nov 29, 2025
319ed73
Omitting a few properties from being bundled.
stevespringett Nov 30, 2025
47f0ec2
chore: update bundled schemas [skip ci]
github-actions[bot] Nov 30, 2025
f0fcf97
Added comment check
stevespringett Nov 30, 2025
625b757
Added schema version check
stevespringett Nov 30, 2025
90de7cd
Ported metadata minus deprecations.
stevespringett Nov 30, 2025
38547b6
Ported multiple models minus deprecations and standardized id and com…
stevespringett Dec 1, 2025
9be3484
Ported model card
stevespringett Dec 1, 2025
4e77988
Updating indent check. Added two new checks.
stevespringett Dec 1, 2025
08e4936
Updating readme
stevespringett Dec 1, 2025
666b40d
Updating readme
stevespringett Dec 1, 2025
7f3c089
Ported dependency and composition objects
stevespringett Dec 1, 2025
4456b54
Updated title
stevespringett Dec 1, 2025
ce23470
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 1, 2025
0f9f07f
Ported vulnerability model
stevespringett Dec 1, 2025
17daf80
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 1, 2025
976a9d2
Ported annotation model
stevespringett Dec 1, 2025
80cf0cc
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 1, 2025
8237c95
Ported formulation model
stevespringett Dec 1, 2025
98a2ce7
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 1, 2025
c1c1e03
Ported declaration model
stevespringett Dec 1, 2025
9575876
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 1, 2025
37e04be
Ported definition and standard model. Updated patent model.
stevespringett Dec 1, 2025
f2e7bb2
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 1, 2025
cbba940
Ported citation model.
stevespringett Dec 1, 2025
9a09935
Added remaining root objects.
stevespringett Dec 1, 2025
43945b5
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 1, 2025
93f57a5
Removed properties from license. Removed unused model files.
stevespringett Dec 1, 2025
1caff3e
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 1, 2025
5012f06
Removed extensible properties to root object.
stevespringett Dec 1, 2025
66cd80e
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 1, 2025
c23f59b
Ported service model.
stevespringett Dec 1, 2025
691bc49
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 1, 2025
2d9b07a
Fixed extensibleProperties defect preventing validation
stevespringett Dec 2, 2025
7ddf4b8
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 2, 2025
da1b173
Fixed properties defect.
stevespringett Dec 2, 2025
dde65f3
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 2, 2025
57beb2e
Synced external references with 1.7 version
stevespringett Dec 2, 2025
2114c27
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 2, 2025
5f14c2a
Fixed property issue with component
stevespringett Dec 2, 2025
9f13aae
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 2, 2025
3a80369
Fixed composition model
stevespringett Dec 2, 2025
0d619e3
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 2, 2025
75c344d
Synced hash with v1.7 version
stevespringett Dec 2, 2025
8db8674
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 2, 2025
1c8bab8
Fixed copyright issue to align with how v1.7 does it.
stevespringett Dec 3, 2025
9c8c622
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 3, 2025
6a39e36
Ported 1.7 unit tests to 2.0.
stevespringett Dec 4, 2025
3c10d0e
Initial checkin
stevespringett Dec 5, 2025
1bc014f
Added .DS_Store to ignore
stevespringett Dec 5, 2025
21b4d38
Merge remote-tracking branch 'origin/2.0-dev' into 2.0-dev-threatmode…
stevespringett Dec 5, 2025
83e8122
Minor corrections to get bundle to compile.
stevespringett Dec 5, 2025
f52760a
chore: update bundled schemas [skip ci]
github-actions[bot] Dec 5, 2025
e8f7aba
adressed comments and reviewed further the schema
petra-dv Dec 7, 2025
53cfdd1
fixed naming inconsistency
petra-dv Dec 7, 2025
d999fac
Merge branch '2.0-dev-threatmodeling' into 2.0-dev-threat-modeling-pe…
stevespringett Dec 10, 2025
d1ebee2
Modified risk and model schemas (#732)
stevespringett Dec 10, 2025
c6e1657
Fixed JSON issue
stevespringett Dec 10, 2025
941fa1f
Initial checkin of behavior model. Should satisfy goals outlined in #…
stevespringett Dec 15, 2025
0729b98
Initial checkin of perspective model.
stevespringett Dec 19, 2025
9f54e54
Minor ref optimizations
stevespringett Dec 19, 2025
c257f85
Minor doc update
stevespringett Dec 19, 2025
367cab2
Adding perspectives to root object and to external references.
stevespringett Dec 19, 2025
b7585b0
feat(cryptography): implement CBOM v2.0 enhancements from #738
bhess Jan 7, 2026
96117b4
Extend cryptography-related behaviors
bhess Jan 8, 2026
54a7138
Added unit test
stevespringett Jan 14, 2026
f16489b
Updated unit test
stevespringett Jan 14, 2026
2a6e499
must -> shall
stevespringett Jan 14, 2026
8ca8115
chore: update bundled schemas [skip ci]
github-actions[bot] Jan 14, 2026
daa4052
Improved description of secProperties
bhess Jan 14, 2026
70de945
A few extensions to the crypto behaviors
bhess Jan 14, 2026
54b6e3b
- Creates "cryptographicFunction" definition, used by algorithm/crypt…
bhess Jan 22, 2026
ea64f8b
chore: update bundled schemas [skip ci]
github-actions[bot] Jan 22, 2026
bb7e30e
Makes sure meta:enum descrptions are available for the new behaviors.…
bhess Jan 22, 2026
20ee286
Extend cryptography-related behaviors (#772)
stevespringett Jan 22, 2026
c53250b
Merge branch '2.0-dev' into 2.0-dev
stevespringett Jan 22, 2026
1c9fc9e
CBOM 2.0 features (#769)
stevespringett Jan 22, 2026
338edcf
chore: update bundled schemas [skip ci]
github-actions[bot] Jan 22, 2026
24fd64a
Ported rating clarification to 2.0 branch. #722
stevespringett Feb 7, 2026
5127956
chore: update bundled schemas [skip ci]
github-actions[bot] Feb 7, 2026
5162baf
Harden enum meta:enum handling
Mehrn0ush Feb 14, 2026
5b0d747
Harden enum-value-formatting meta:enum handling (#821)
stevespringett Feb 19, 2026
979b738
Merge branch 'master' into 2.0-dev
jkowalleck Feb 24, 2026
5dd5f64
Adds gmac/cmac to modes, and unwrap to cryptoFunctions
bhess Feb 24, 2026
ebeeb0f
Add paramgen, paramver, and keyver cryptographic functions
jvdsn Feb 23, 2026
8fd1f0e
Add X9.31 padding for RSA
jvdsn Feb 23, 2026
abcc155
Add more symmetric modes
jvdsn Feb 23, 2026
edefa4b
Add CAVP validation level
jvdsn Feb 23, 2026
ff45d63
chore: update bundled schemas [skip ci]
github-actions[bot] Feb 26, 2026
ae266d4
Add more cryptographic functions, paddings, modes, and validation lev…
stevespringett Feb 26, 2026
8147988
Migrated enveloped signature support from JSF to JSS. Expanded on the…
stevespringett Mar 1, 2026
fd3b448
Major changes to blueprints and other changes to supporting schemas. …
stevespringett Mar 4, 2026
e4cd7d6
chore: update bundled schemas [skip ci]
github-actions[bot] Mar 4, 2026
ae61bcf
Consistent capitalization
bhess Mar 5, 2026
4c420ae
Merge branch '2.0-dev' into bhe-20dev-tweaks
stevespringett Mar 5, 2026
1816ddb
Cryptography: add unwrap, gmac, cmac (#845)
stevespringett Mar 5, 2026
e41bbc6
chore: update bundled schemas [skip ci]
github-actions[bot] Mar 5, 2026
0f8a254
Initial checkin of perspective model. (#745)
stevespringett Mar 5, 2026
38a2a23
Behavior and blueprint updates. Minor changes to data schema
stevespringett Mar 27, 2026
55b67ea
chore: update bundled schemas [skip ci]
github-actions[bot] Mar 27, 2026
f730ce0
Updated to use cases and requirements - moving them to definitions
stevespringett Mar 27, 2026
1343aca
Merge remote-tracking branch 'origin/2.0-dev-threatmodeling' into 2.0…
stevespringett Mar 27, 2026
935364b
correted json syntax
stevespringett Mar 27, 2026
27282d3
chore: update bundled schemas [skip ci]
github-actions[bot] Mar 27, 2026
8e680d8
Removed unnecessary token usage
stevespringett Mar 31, 2026
522d5b7
Merge remote-tracking branch 'origin/2.0-dev' into 2.0-dev
stevespringett Mar 31, 2026
be4e875
chore: GH workflow default permissions for bundle_2.0_schemas.yml
jkowalleck Mar 31, 2026
ebcf4c2
Adds custom fingerprints
bhess Feb 25, 2026
ef10479
Removed unnecessary title and description from signatures throughout …
stevespringett May 4, 2026
7d3546b
Updated test cases with valid signature blocks
stevespringett May 4, 2026
54d16af
Added mockups
stevespringett May 7, 2026
47319f5
Added support for conditional components and associated unit tests.
stevespringett May 12, 2026
41baec2
Initial commit of the party model and test cases.
stevespringett May 14, 2026
d54f9a0
Add title/description to hash in common schema
bhess May 21, 2026
10b343a
Added new component identity model with updated test cases.
stevespringett May 22, 2026
21ca15a
Major updates to threatmodeling and bluepring schemas and their relat…
stevespringett May 27, 2026
b1e46dd
Minor correction to timestamp support and algorithm vocabulary.
stevespringett Jun 1, 2026
4c830f4
Tightened string values in hash_algorithm, public_key, thumbprint, an…
stevespringett Jun 1, 2026
2e89140
Updated comments for valid_until and modified properties.
stevespringett Jun 1, 2026
92a0604
feat(cryptography): add cryptographic agility plane to CBOM
bhess Jun 3, 2026
dd06849
CBOM: add custom fingerprints (#903)
stevespringett Jun 4, 2026
96d485a
chore: update bundled schemas [skip ci]
github-actions[bot] Jun 4, 2026
92c9827
Move agility to component level, unify rotation and renewal object
bhess Jun 5, 2026
8a14716
WIP 2.0 threat-modeling schema set
stevespringett Jun 5, 2026
cf91c5c
Minor refactor and expansion of risk schema
stevespringett Jun 6, 2026
05375fd
Removed unnecessary risk scenario. Added related vulnerabilities and …
stevespringett Jun 6, 2026
e14fa3f
Minor changes to incorporate risks into CDXA
stevespringett Jun 6, 2026
c6956ea
Minor updates to assessment
stevespringett Jun 6, 2026
d305f2e
Minor refactoring of specific parts of blueprint schema along with so…
stevespringett Jun 7, 2026
354baf4
Corrected mediaType reference issue
stevespringett Jun 7, 2026
f30e142
Removed methodology. Provided little value
stevespringett Jun 7, 2026
d5aa9b0
Refactor of how behaviors are represented to account for truly event-…
stevespringett Jun 7, 2026
3dca97b
Minor refactor to introduce blueprint relaltionships.
stevespringett Jun 7, 2026
d262ad8
Added data relationships and a few minor other things
stevespringett Jun 7, 2026
43e8455
Added session management and a few other minor changes
stevespringett Jun 8, 2026
6735876
Added qualitative-matrix
stevespringett Jun 8, 2026
f011423
Added threat origin
stevespringett Jun 8, 2026
cc44d4b
2.0 dev threatmodeling staging (#951)
stevespringett Jun 8, 2026
6ec41a6
Added control as first-class citizen and expanded use of controls to …
stevespringett Jun 11, 2026
48a218c
Address review comments
bhess Jun 12, 2026
4bd160d
feat: add origin region for hardware provenance
taleodor Jun 12, 2026
72407e7
Added test cases, comment to schema, and corrected space issue with b…
stevespringett Jun 16, 2026
10d7dd2
Changed risk type to align with the kind of risk assessment performed…
stevespringett Jun 18, 2026
84e4513
Closed some gaps for PASTA, STRIDE-LM by introducing business objecti…
stevespringett Jun 19, 2026
eb1e329
Updated component identifiers based on feedback from the Hardware Wor…
stevespringett Jun 19, 2026
5a1313f
Updated enums
stevespringett Jun 19, 2026
6f90077
Updated test case
stevespringett Jun 19, 2026
af32aca
Removed name from being required. Updated test cases to address comme…
stevespringett Jun 22, 2026
84da056
Added new component identity model with updated test cases. (#936)
stevespringett Jun 28, 2026
e7474ca
chore: update bundled schemas [skip ci]
github-actions[bot] Jun 28, 2026
e79bb8e
Removed "other" options for enums that were extensible.
stevespringett Jun 28, 2026
e43821f
Merge branch '2.0-dev' into 2.0-dev-party-model
stevespringett Jun 28, 2026
aae4886
Initial commit of the party model and test cases. (#930)
stevespringett Jun 28, 2026
ab843c6
chore: update bundled schemas [skip ci]
github-actions[bot] Jun 28, 2026
d823abb
Merge branch '2.0-dev' into 2.0-dev-conditional-components
stevespringett Jun 28, 2026
51d086c
Added support for conditional components and associated unit tests (#…
stevespringett Jun 28, 2026
dd0a040
chore: update bundled schemas [skip ci]
github-actions[bot] Jun 28, 2026
6e2c045
Merge branch '2.0-dev' into 2.0-dev-x590
stevespringett Jun 28, 2026
07376a1
Migrate enveloped signature support from JSF to JSS (#858)
stevespringett Jun 28, 2026
bbbcaec
chore: update bundled schemas [skip ci]
github-actions[bot] Jun 28, 2026
e0c1a32
Merge remote-tracking branch 'origin/2.0-dev' into 2.0-dev-threatmode…
stevespringett Jun 28, 2026
03a8eaa
chore: update bundled schemas [skip ci]
github-actions[bot] Jun 28, 2026
63682cc
fix: multiple origins allowed per subject and origins terminology change
taleodor Jul 12, 2026
30c0c02
fix: add validations and clarify descriptions for origins
taleodor Jul 12, 2026
253d59c
Removed service in preparation for #733
stevespringett Jul 12, 2026
cf0bc55
chore: update bundled schemas [skip ci]
github-actions[bot] Jul 12, 2026
c714dc8
Refactored service into a component type. Removed legacy dataflow tha…
stevespringett Jul 12, 2026
22b0d13
unified evidence model addressing #278, #333 and other concerns.
stevespringett Jul 20, 2026
5e5915f
feat: add origin region for hardware provenance (#952)
stevespringett Jul 21, 2026
6dce848
Added hardware-specific evidence types
stevespringett Jul 21, 2026
2e01b5d
Added hardware-specific data and test cases developed through the har…
stevespringett Jul 21, 2026
3c61c28
Merge remote-tracking branch 'origin/2.0-dev-hardware' into 2.0-dev-h…
stevespringett Jul 21, 2026
d8e7469
add material components and stage-scoped origin provenance
stevespringett Jul 22, 2026
5c83b68
Added missing quantity for device and material components
stevespringett Jul 22, 2026
9312c82
Added additional test cases for quantity.
stevespringett Jul 22, 2026
62dee9e
chore: mark generated
jkowalleck Jul 29, 2026
2a86067
chore: mark generated
jkowalleck Jul 29, 2026
e1c91b7
[2.0] Tests: split schema 1.x 2.x (#999)
jkowalleck Aug 3, 2026
0c4b8c0
2.0 tests init (#1000)
jkowalleck Aug 4, 2026
de910cb
2.0 dev mergemaster 20260704 (#1002)
jkowalleck Aug 4, 2026
ffae620
Merge remote-tracking branch 'origin/master' into 2.0-dev_mergemaster…
jkowalleck Aug 4, 2026
f9a5002
2.0 dev mergemaster 20260704 2 (#1003)
jkowalleck Aug 4, 2026
854a91f
chore: group tests by version
jkowalleck Aug 5, 2026
1bd21ad
tests: meta:enum tests
jkowalleck Aug 5, 2026
bb2800a
tests: meta:enum tests (#1004)
jkowalleck Aug 5, 2026
372efe6
tests: fix errorneous file output
jkowalleck Aug 5, 2026
8159643
chore: tools private and gitignore
jkowalleck Aug 5, 2026
8a32e0c
have schema paths
jkowalleck Aug 5, 2026
94566fa
feat: rewire excluded $ref
jkowalleck Aug 5, 2026
eb17a0b
tidy
jkowalleck Aug 5, 2026
915eaca
tidy
jkowalleck Aug 5, 2026
7bdca03
schema fixes
jkowalleck Aug 5, 2026
0aa32c3
tidy
jkowalleck Aug 5, 2026
3c2d065
2.0 dev bundler externals rewrite (#1006)
jkowalleck Aug 5, 2026
ec7a40d
tests: validate bundled schema only on mainline
jkowalleck Aug 5, 2026
67d3ec8
tests: validate bundled schema only on mainline (#1007)
jkowalleck Aug 5, 2026
0bb19a1
chore: fix js test runner chain
jkowalleck Aug 5, 2026
886366a
chore: fix schema-bundler workflow
jkowalleck Aug 5, 2026
93e1d82
chore: fix schema-bundler workflow
jkowalleck Aug 5, 2026
83c633a
Merge branch 'master' into 2.0-dev
jkowalleck Aug 7, 2026
480a1c0
chore: editorconfir for cdx-2.0 bundled
jkowalleck Aug 7, 2026
724dfda
chore: editorconfir for cdx-2.0 bundled
jkowalleck Aug 7, 2026
d9718d6
Update schema/2.0/model/cyclonedx-risk-2.0.schema.json
stevespringett Aug 9, 2026
4109d01
chore: update bundled schemas [skip ci]
github-actions[bot] Aug 9, 2026
3ac3bea
Update schema/2.0/model/cyclonedx-control-2.0.schema.json
stevespringett Aug 9, 2026
217916f
chore: update bundled schemas [skip ci]
github-actions[bot] Aug 9, 2026
eeb8a3f
Update schema/behavior-taxonomy.schema.json
stevespringett Aug 9, 2026
40c5873
Update schema/2.0/model/cyclonedx-common-2.0.schema.json
stevespringett Aug 9, 2026
75bb5bd
Update schema/2.0/model/cyclonedx-profile-2.0.schema.json
stevespringett Aug 9, 2026
3e3282d
chore: update bundled schemas [skip ci]
github-actions[bot] Aug 9, 2026
b0e8640
Update schema/2.0/model/cyclonedx-weakness-2.0.schema.json
stevespringett Aug 9, 2026
713d4fb
chore: update bundled schemas [skip ci]
github-actions[bot] Aug 9, 2026
3dcab8a
Update schema/2.0/model/cyclonedx-common-2.0.schema.json
stevespringett Aug 9, 2026
906c579
chore: update bundled schemas [skip ci]
github-actions[bot] Aug 9, 2026
68da661
chore: split docs CDX1.x
jkowalleck Aug 10, 2026
c5fc0d5
chore: split docs CDX1.x
jkowalleck Aug 10, 2026
998df95
chore: split docs CDX1.x
jkowalleck Aug 10, 2026
1beae2b
chore: split docs CDX1.x
jkowalleck Aug 10, 2026
6de25ce
2.0 dev split docsgen (#1017)
jkowalleck Aug 10, 2026
84b08a4
Merge remote-tracking branch 'origin/2.0-dev' into 2.0-dev-vuln-evidence
jkowalleck Aug 14, 2026
d52129e
revert docsgen scehma-v1 json mods
jkowalleck Aug 14, 2026
fd53309
Merge branch '2.0-dev' into chore/default-permisiosn-bundle_2.0_schemas
jkowalleck Aug 15, 2026
f692f77
chore: GH workflow default permissions for bundle_2.0_schemas.yml (#902)
jkowalleck Aug 15, 2026
721c601
chore: dependabot config (#1032)
jkowalleck Aug 18, 2026
1da95b5
Removed constraint on enum.
stevespringett Aug 18, 2026
5884b3e
Update schema/2.0/model/cyclonedx-hardware-2.0.schema.json
stevespringett Aug 20, 2026
6648151
Update schema/2.0/model/cyclonedx-hardware-2.0.schema.json
stevespringett Aug 20, 2026
68d5469
Renamed hardware schema to physical per recommendation in https://git…
stevespringett Aug 20, 2026
70369b9
Inhereting only license id and name rather than the full object as re…
stevespringett Aug 20, 2026
4778514
must -> shall
stevespringett Aug 20, 2026
a638183
[2.0] Threatmodeling and Blueprints (#678)
stevespringett Aug 20, 2026
6a11cbc
Merge branch '2.0-dev' into 2.0-dev-service-components
stevespringett Aug 20, 2026
9c3d887
Refactored service into a component type (#975)
stevespringett Aug 20, 2026
38902a3
Merge branch '2.0-dev' into 2.0-dev-vuln-evidence
stevespringett Aug 20, 2026
717bd5b
Unified evidence model addressing #278, #333 and other concerns. (#980)
stevespringett Aug 20, 2026
976d6da
Merge branch '2.0-dev' into 2.0-dev-hardware
stevespringett Aug 20, 2026
56c5d8d
Added first-class hardware support (#982)
stevespringett Aug 20, 2026
ad75160
Merge branch '2.0-dev' into bhe-agility-plane
stevespringett Aug 20, 2026
12c3a5e
feat(cryptography): add cryptographic agility plane to CBOM (#947)
stevespringett Aug 20, 2026
4973b44
Minor corrections due to recent merge issues
stevespringett Aug 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
72 changes: 65 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,25 @@ updates:
prefix: 'chore' ## prefix maximum string length of 15
include: 'scope'
open-pull-requests-limit: 999
- package-ecosystem: 'maven'
# region docs
- # docs v1
package-ecosystem: 'pip'
directories:
- '/docgen/*'
schedule:
interval: 'weekly'
day: 'saturday'
cooldown:
default-days: 7
labels: [ 'dependencies' ]
commit-message:
prefix: 'chore' ## prefix maximum string length of 15
include: 'scope'
open-pull-requests-limit: 999
# endregion docs
# region tools
- # tools Java
package-ecosystem: 'maven'
directory: '/tools'
schedule:
interval: 'weekly'
Expand All @@ -37,8 +55,43 @@ updates:
prefix: 'chore' ## prefix maximum string length of 15
include: 'scope'
open-pull-requests-limit: 999
- package-ecosystem: 'composer'
directory: '/tools/src/test/php'
- # tools JS: bundler
package-ecosystem: 'npm'
directory: '/tools/src/main/js/bundler'
schedule:
interval: 'weekly'
day: 'saturday'
cooldown:
default-days: 7
labels: [ 'dependencies' ]
commit-message:
prefix: 'chore' ## prefix maximum string length of 15
include: 'scope'
open-pull-requests-limit: 999
groups:
all-deps: # we have a lockfile - we want all deps updates in one PR
applies-to: 'version-updates'
patterns: [ '*' ]
- # tools JS: linter
package-ecosystem: 'npm'
directory: '/tools/src/main/js/linter'
schedule:
interval: 'weekly'
day: 'saturday'
cooldown:
default-days: 7
labels: [ 'dependencies' ]
commit-message:
prefix: 'chore' ## prefix maximum string length of 15
include: 'scope'
open-pull-requests-limit: 999
groups:
all-deps: # we have a lockfile - we want all deps updates in one PR
applies-to: 'version-updates'
patterns: [ '*' ]
- # tools python
package-ecosystem: 'pip'
directory: '/tools/src/main/python'
schedule:
interval: 'weekly'
day: 'saturday'
Expand All @@ -49,8 +102,10 @@ updates:
prefix: 'chore' ## prefix maximum string length of 15
include: 'scope'
open-pull-requests-limit: 999
- package-ecosystem: 'npm'
directory: '/tools/src/test/js'
- # tests PHP
package-ecosystem: 'composer'
directories:
- '/tools/src/test/php/*'
schedule:
interval: 'weekly'
day: 'saturday'
Expand All @@ -61,8 +116,10 @@ updates:
prefix: 'chore' ## prefix maximum string length of 15
include: 'scope'
open-pull-requests-limit: 999
- package-ecosystem: 'pip'
directory: '/docgen/json'
- # tests JS
package-ecosystem: 'npm'
directories:
- '/tools/src/test/js/*'
schedule:
interval: 'weekly'
day: 'saturday'
Expand All @@ -73,3 +130,4 @@ updates:
prefix: 'chore' ## prefix maximum string length of 15
include: 'scope'
open-pull-requests-limit: 999
# endregion tools
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Docs
name: Build CDX-1.x Docs

on:
push:
Expand All @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docgen/xml
working-directory: docgen/schema-v1/xml
steps:
- name: Checkout
# see https://github.com/actions/checkout
Expand All @@ -38,13 +38,13 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: XML-Schema-documentation
path: docgen/xml/docs
path: docgen/schema-v1/xml/docs
if-no-files-found: error
docs_json:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docgen/json
working-directory: docgen/schema-v1/json
steps:
- name: Checkout
# see https://github.com/actions/checkout
Expand All @@ -64,13 +64,13 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: JSON-Schema-documentation
path: docgen/json/docs
path: docgen/schema-v1/json/docs
if-no-files-found: error
docs_proto:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docgen/proto
working-directory: docgen/schema-v1/proto
steps:
- name: Checkout
# see https://github.com/actions/checkout
Expand All @@ -84,5 +84,5 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: PROTO-Schema-documentation
path: docgen/proto/docs
path: docgen/schema-v1/proto/docs
if-no-files-found: error
27 changes: 16 additions & 11 deletions .github/workflows/bundle_2.0_schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:
- 2.0-dev
- 2.0-dev-threatmodeling
paths:
- '.github/workflows/bundle_2.0_schemas.yml' # self
- 'schema/2.0/**/*.schema.json'
- 'tools/src/main/js/bundle-schemas.js'
- 'tools/src/main/js/bundler/**'
workflow_dispatch: # Allows manual trigger

# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions: {}

jobs:
bundle-schemas:
runs-on: ubuntu-latest
Expand All @@ -31,32 +35,33 @@ jobs:
node-version: '20'

- name: Install dependencies
working-directory: tools/src/main/js
working-directory: tools/src/main/js/bundler
run: npm install

- name: Bundle schemas
working-directory: tools/src/main/js
run: |
node bundle-schemas.js \
../../../../schema/2.0/model \
../../../../schema/2.0/cyclonedx-2.0.schema.json
working-directory: tools/src/main/js/bundler
run: >-
node bundle-schemas.js
../../../../../schema/2.0/model
../../../../../schema/2.0/cyclonedx-2.0.schema.json

- name: Check for changes and commit
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BUNDLED_FILE="schema/2.0/cyclonedx-2.0-bundled.schema.json"
MINIFIED_FILE="schema/2.0/cyclonedx-2.0-bundled.min.schema.json"

# Add the file (works for both new and modified files)
git add "$BUNDLED_FILE"
# Add both files (works for both new and modified files)
git add "$BUNDLED_FILE" "$MINIFIED_FILE"

# Check if there are staged changes
if git diff --staged --quiet; then
echo "No changes to bundled schema"
echo "No changes to bundled schemas"
else
echo "Committing bundled schema changes"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "chore: update bundled schema [skip ci]"
git commit -m "chore: update bundled schemas [skip ci]"
git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
fi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CT Java
name: CT CDX-1.x Java

on:
push:
Expand Down Expand Up @@ -34,4 +34,4 @@ jobs:
distribution: 'zulu'
java-package: jdk
- name: test with Maven
run: mvn clean test
run: mvn clean test -Pschema-v1-tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

name: CT JavaScript
name: CT CDX-1.x JavaScript

on:
push:
Expand All @@ -14,7 +14,7 @@ concurrency:

defaults:
run:
working-directory: tools/src/test/js
working-directory: tools/src/test/js/schema-v1

# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions: {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

name: CT PHP
name: CT CDX-1.x PHP

on:
push:
Expand All @@ -14,7 +14,7 @@ concurrency:

defaults:
run:
working-directory: tools/src/test/php
working-directory: tools/src/test/php/schema-v1

# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions: {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

name: CT ProtoBuf
name: CT CDX-1.x ProtoBuf

on:
push:
Expand All @@ -14,7 +14,7 @@ concurrency:

defaults:
run:
working-directory: tools/src/test/proto
working-directory: tools/src/test/proto/schema-v1

# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions: {}
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/test_2.x_java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CT CDX-2.x Java

on:
push:
branches: ['master', 'main']
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
working-directory: tools

# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions: {}

jobs:
test_java:
runs-on: ubuntu-latest
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up JDK
# see https://github.com/actions/setup-java
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
java-version: '8'
distribution: 'zulu'
java-package: jdk
- name: test with Maven
run: mvn clean test -Pschema-v2-tests
50 changes: 50 additions & 0 deletions .github/workflows/test_2.x_js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# docs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

name: CT CDX-2.x JavaScript

on:
push:
branches: ['master', 'main']
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
working-directory: tools/src/test/js/schema-v2

# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions: {}

jobs:
test_js:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Node.js
# see https://github.com/actions/setup-node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '26.x'
package-manager-cache: false
- name: Install Dependencies
run: npm install
- name: Run test
env:
VALIDATE_BUNDLED: >-
${{ github.ref == 'refs/heads/master'
|| github.ref == 'refs/heads/main'
|| github.ref == 'refs/heads/2.0-dev'
|| ( github.event_name == 'pull_request'
&& github.base_ref == 'master'
)
}}
run: npm test
Loading
Loading