Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
eac0ac6
Initial commit
stevespringett Jun 15, 2025
028c9df
Merge remote-tracking branch 'origin/master' into 2.0-dev
stevespringett Nov 11, 2025
bde33b2
Syncing with master
stevespringett Nov 11, 2025
dae213a
Revert "Syncing with master"
stevespringett Nov 11, 2025
fbaf3de
Added schema bundler and updated readme.
stevespringett Nov 11, 2025
0d74d96
Adding GitHub Action to combine schemas
stevespringett Nov 11, 2025
51fbf49
Updated branches
stevespringett Nov 11, 2025
b4721e1
Updating action
stevespringett Nov 12, 2025
91ec8e0
chore: update bundled schema [skip ci]
github-actions[bot] Nov 12, 2025
c4d6c82
Updated docgen for 2.0
stevespringett Nov 12, 2025
b6fed22
Added minified bundling
stevespringett Nov 12, 2025
173a276
chore: update bundled schemas [skip ci]
github-actions[bot] Nov 12, 2025
0427839
Added further optimization to minified version
stevespringett Nov 12, 2025
8668856
chore: update bundled schemas [skip ci]
github-actions[bot] Nov 12, 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
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
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
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
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
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
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
ebcf4c2
Adds custom fingerprints
bhess Feb 25, 2026
d54f9a0
Add title/description to hash in common schema
bhess May 21, 2026
dd06849
CBOM: add custom fingerprints (#903)
stevespringett Jun 4, 2026
96d485a
chore: update bundled schemas [skip ci]
github-actions[bot] Jun 4, 2026
f953ade
fix: add properties field to ModelCard xml and proto to resolve misma…
wiebe-vandendriessche Dec 17, 2025
f282ef9
fix: removed some unnecessary whitespace
wiebe-vandendriessche Dec 17, 2025
3b0d24b
fix: bump version numbers in BOM schema files to 1.5.1, 1.6.2, and 1.7.1
wiebe-vandendriessche Jan 15, 2026
d2b8158
test: add tests for custom properties field in modelCard (json, xml, …
wiebe-vandendriessche Jan 16, 2026
0ab273c
fix: add another custom property to ModelCard across JSON, XML, and p…
wiebe-vandendriessche Feb 9, 2026
d0340fd
feat: enum labels for spdx.schema.json
jkowalleck Feb 23, 2026
65c528b
fix(schema): correct typos in content-type text and refType comment
Mehrn0ush Feb 25, 2026
a6b8a63
fix(crypto-registry): normalize RFC/FIPS standard name formatting
Mehrn0ush Feb 24, 2026
cf125c9
chore: update algorithm families [skip ci]
github-actions[bot] Feb 26, 2026
6ca109c
chore: harden schema validators
jkowalleck Mar 2, 2026
b7e8fb4
Added missing scarf to docs.
stevespringett Mar 2, 2026
2a653fa
Updated documentation generation
stevespringett Mar 10, 2026
e0fe681
Updated documentation generation
stevespringett Mar 10, 2026
95c799b
Fixed potential security issue
stevespringett Mar 10, 2026
44ef4f3
Fixed potential security issue
stevespringett Mar 10, 2026
57f6595
Potential fix for code scanning alert no. 39: Uncontrolled data used …
stevespringett Mar 10, 2026
b3f7cbe
Update crypto definitions
bhess Feb 24, 2026
af59342
Remove duplicate KDF, merge with kdf with SP800-108r1
bhess Feb 26, 2026
1ac779e
Consistent use of kdf for password-based key derivation algorithms, a…
bhess Mar 5, 2026
2d3d611
chore: update algorithm families [skip ci]
github-actions[bot] Mar 5, 2026
8f16d46
major changes to json template doc generation - reducing filesize fro…
stevespringett Mar 10, 2026
5ae1b86
remove buf comments
jkowalleck Mar 12, 2026
a91711e
fix scroll-padding-top for XML
jkowalleck Mar 13, 2026
2578080
Add RSA-X931
jvdsn Mar 11, 2026
db2645e
Add standard
jvdsn Apr 16, 2026
52e663a
Add TLS-PRF family
jvdsn Mar 12, 2026
eae7245
Separate out AES KW / KWP
jvdsn Mar 11, 2026
71d3e71
Add SP800-56C family
jvdsn Mar 12, 2026
7648767
Add two variants instead of one
jvdsn Mar 12, 2026
4a8e316
Fix primitive
jvdsn Mar 12, 2026
5d8fecc
Fix SipHash primitive classification in cryptography registry
Mehrn0ush Mar 12, 2026
1751dc7
Add AES-OCB to cryptography registry
Mehrn0ush Mar 12, 2026
90d10b9
Add ANSI KDFs
jvdsn Mar 12, 2026
4e21034
Deduplicate MD4 and MD5 entries in cryptography registry
Mehrn0ush Mar 12, 2026
4fa512c
Remove dash from SHA-3 hash algorithms
jvdsn Mar 11, 2026
c0fb0ec
Remove dash from EdDSA
jvdsn Mar 11, 2026
a64c8ed
Add hashAlgorithm to IKE-PRF
jvdsn Mar 11, 2026
58a5e01
Fixed JSON issue
stevespringett Mar 26, 2026
72cfa71
Add SSH-KDF
jvdsn Mar 27, 2026
da1a972
Initial plan
Copilot Apr 16, 2026
f3f6482
chore: pin GitHub Actions to immutable commit SHAs
Copilot Apr 16, 2026
dc843c7
chore(workflows): add zizmor security gate and harden Actions credent…
Copilot May 8, 2026
ca68e7a
chore: bump schema versions for upcoming changes
jkowalleck May 18, 2026
a218d57
fix: allow multiple entries for ModelCard considerations lists in xml…
wiebe-vandendriessche Dec 17, 2025
157d29b
test: Add second entry for users, useCases, technicalLimitations, and
wiebe-vandendriessche Jan 16, 2026
1890396
fix: add test cases for all supported formats
wiebe-vandendriessche Feb 9, 2026
5b2ad50
fix: correct BLS12 algorithm pattern
Mehrn0ush May 2, 2026
c16e29a
fix: correct GOST 28147 algorithm names
Mehrn0ush May 2, 2026
3a7526b
chore(deps): bump shivammathur/setup-php from 2.37.0 to 2.37.1
dependabot[bot] May 23, 2026
6922a52
chore(deps): bump zizmorcore/zizmor-action from 0.5.3 to 0.5.6
dependabot[bot] May 27, 2026
099448d
ci: pinned action comments exact versions
jkowalleck Jun 3, 2026
b7644fc
chore: adjust zizmor
jkowalleck Jun 3, 2026
d324050
chore: adjust zizmor
jkowalleck Jun 3, 2026
5fc7545
wip
jkowalleck Jun 3, 2026
3b95b6e
wip
jkowalleck Jun 3, 2026
478fc66
wip
jkowalleck Jun 3, 2026
97bc955
wip
jkowalleck Jun 3, 2026
6062ab9
Add AI/ML schema and update .gitignore
mrutkows Jun 22, 2026
a3cfd5e
Encode the AI/ML schema draft for v2.0
mrutkows Jun 22, 2026
2c07996
Encode the AI/ML schema draft for v2.0
mrutkows Jun 22, 2026
6dcc3d7
Update AI/ML v2.0 schema
mrutkows Jun 22, 2026
c64fcd0
Update AI/ML v2.0 schema
mrutkows Jun 23, 2026
e76b258
Update AI/ML v2.0 schema
mrutkows Jun 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ updates:
schedule:
interval: 'weekly'
day: 'saturday'
cooldown:
default-days: 7
labels: [ 'dependencies' ]
commit-message:
prefix: 'chore' ## prefix maximum string length of 15
Expand All @@ -16,6 +18,8 @@ updates:
schedule:
interval: 'weekly'
day: 'saturday'
cooldown:
default-days: 7
labels: [ 'dependencies' ]
commit-message:
prefix: 'chore' ## prefix maximum string length of 15
Expand All @@ -26,6 +30,8 @@ updates:
schedule:
interval: 'weekly'
day: 'saturday'
cooldown:
default-days: 7
labels: [ 'dependencies' ]
commit-message:
prefix: 'chore' ## prefix maximum string length of 15
Expand All @@ -36,6 +42,8 @@ updates:
schedule:
interval: 'weekly'
day: 'saturday'
cooldown:
default-days: 7
labels: [ 'dependencies' ]
commit-message:
prefix: 'chore' ## prefix maximum string length of 15
Expand All @@ -46,6 +54,8 @@ updates:
schedule:
interval: 'weekly'
day: 'saturday'
cooldown:
default-days: 7
labels: [ 'dependencies' ]
commit-message:
prefix: 'chore' ## prefix maximum string length of 15
Expand All @@ -56,6 +66,8 @@ updates:
schedule:
interval: 'weekly'
day: 'saturday'
cooldown:
default-days: 7
labels: [ 'dependencies' ]
commit-message:
prefix: 'chore' ## prefix maximum string length of 15
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up JDK
# see https://github.com/actions/setup-java
uses: actions/setup-java@v5
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: '21'
distribution: 'zulu'
Expand All @@ -33,7 +35,7 @@ jobs:
run: ./gen.sh
- name: Archive Schema documentation
# https://github.com/actions/upload-artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: XML-Schema-documentation
path: docgen/xml/docs
Expand All @@ -46,18 +48,20 @@ jobs:
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Python Environment
# see https://github.com/actions/setup-python
uses: actions/setup-python@v6
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
architecture: 'x64'
- name: Generate Schema documentation
run: ./gen.sh
- name: Archive Schema documentation
# https://github.com/actions/upload-artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: JSON-Schema-documentation
path: docgen/json/docs
Expand All @@ -70,12 +74,14 @@ jobs:
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Generate Schema documentation
run: ./gen.sh
- name: Archive Schema documentation
# https://github.com/actions/upload-artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: PROTO-Schema-documentation
path: docgen/proto/docs
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/bundle_2.0_schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v6
# see https://github.com/actions/checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v6
# see https://github.com/actions/setup-node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '20'

Expand All @@ -40,6 +42,8 @@ jobs:
../../../../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"

Expand All @@ -54,5 +58,5 @@ jobs:
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 push
git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
fi
6 changes: 4 additions & 2 deletions .github/workflows/generate_algorithm_families.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v6
# see https://github.com/actions/checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
# see https://github.com/actions/setup-python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.x'

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up JDK
# see https://github.com/actions/setup-java
uses: actions/setup-java@v5
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: '8'
distribution: 'zulu'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ jobs:
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node.js
# see https://github.com/actions/setup-node
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '24.x'
package-manager-cache: false
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test_php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ jobs:
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup PHP
# see https://github.com/shivammathur/setup-php
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
php-version: "8.4"
tools: composer:v2
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run test
run: ./test.sh
16 changes: 10 additions & 6 deletions .github/workflows/update_spdx_licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ jobs:
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v5
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
ref: ${{ github.ref_name }}
persist-credentials: false
- name: Set up JDK
# see https://github.com/actions/setup-java
uses: actions/setup-java@v5
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: '21'
distribution: 'zulu'
Expand All @@ -54,7 +55,7 @@ jobs:
- name: Artifact changes
if: ${{ steps.diff.outputs.changed == 'true' }}
# https://github.com/actions/upload-artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
retention-days: 1
name: schema-spdx
Expand All @@ -74,9 +75,10 @@ jobs:
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v5
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
ref: ${{ github.ref_name }}
persist-credentials: false
- name: Switch branch
id: branch
run: |
Expand All @@ -93,11 +95,13 @@ jobs:
fi
- name: Fetch changes
# https://github.com/actions/download-artifact
uses: actions/download-artifact@v5
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: schema-spdx
path: schema
- name: Commit and push
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eux
if git diff --quiet -- 'schema/spdx.*'
Expand All @@ -109,7 +113,7 @@ jobs:
git config user.email 'spdx-license-bumper@bot.local'
git add -A schema
git commit -s -m "feat: bump SPDX licenses $SB_VERSION"
git push origin "$SB_BRANCH"
git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$SB_BRANCH"
- name: Pull request
if: ${{ steps.branch.outputs.existed == 'false' }}
run: >
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Zizmor

on:
push:
branches: ['master', 'main']
pull_request:
branches: ['**']
workflow_dispatch:
schedule:
- cron: '0 0 * * 6'

permissions: {}

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

jobs:
zizmor:
name: Zizmor
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run zizmor 🌈
# see https://github.com/zizmorcore/zizmor-action
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
with:
# advanced-security: false => emit findings as workflow-command annotations (::error file=…) rather than
# uploading a SARIF report to GitHub's Security tab.
# Uploading SARIF requires `security-events: write` and GitHub Advanced Security (GHAS),
# both of which are unnecessary here and would violate the least-privilege policy.
# The two modes are mutually exclusive: advanced-security must be false for
# annotations to take effect.
advanced-security: false
annotations: true
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Filesystem
**/.DS_Store

# Tooling
.idea/
.vscode/
tools/target/
.bob

# UML diagrams
**/.uml/
20 changes: 15 additions & 5 deletions docgen/json/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -eu

declare -a CDX_VERSIONS=(
'2.0'
'1.7'
'1.6'
'1.5'
Expand All @@ -25,6 +26,9 @@ SCHEMA_PATH="$(realpath "$THIS_PATH/../../schema")"
DOCS_PATH="$THIS_PATH/docs"
TEMPLATES_PATH="$THIS_PATH/templates"

# Centralized header injection
source "$THIS_PATH/../static/inject-header.sh"


# --

Expand All @@ -44,11 +48,15 @@ generate () {
local title="CycloneDX v${version} JSON Reference"
echo "Generating: $title"

local SCHEMA_FILE="$SCHEMA_PATH/bom-${version}.schema.json"
local STRICT_SCHEMA_FILE="$SCHEMA_PATH/bom-${version}-strict.schema.json"
if [ -f "$STRICT_SCHEMA_FILE" ]
then
local SCHEMA_FILE
if [[ "$version" == 1.* ]]; then
SCHEMA_FILE="$SCHEMA_PATH/bom-${version}.schema.json"
local STRICT_SCHEMA_FILE="$SCHEMA_PATH/bom-${version}-strict.schema.json"
if [ -f "$STRICT_SCHEMA_FILE" ]; then
SCHEMA_FILE="$STRICT_SCHEMA_FILE"
fi
else
SCHEMA_FILE="$SCHEMA_PATH/${version}/cyclonedx-${version}-bundled.schema.json"
fi
echo "SCHEMA_FILE: $SCHEMA_FILE"

Expand All @@ -58,7 +66,7 @@ generate () {
mkdir -p "$OUT_DIR"

generate-schema-doc \
--config no_link_to_reused_ref \
--config link_to_reused_ref \
--config no_show_breadcrumbs \
--config no_collapse_long_descriptions \
--deprecated-from-description \
Expand All @@ -71,6 +79,8 @@ generate () {
sed -i -e "s/\${quotedTitle}/\"$title\"/g" "$OUT_FILE"
sed -i -e "s/\${title}/$title/g" "$OUT_FILE"
sed -i -e "s/\${version}/$version/g" "$OUT_FILE"

inject_header "$OUT_FILE" "$version" "json"
}


Expand Down
Loading