Skip to content

Commit bde33b2

Browse files
Syncing with master
1 parent 028c9df commit bde33b2

File tree

2,778 files changed

+381560
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,778 files changed

+381560
-0
lines changed

.DS_Store

10 KB
Binary file not shown.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Bundle JSON Schema with Versioned Output
2+
3+
on:
4+
push:
5+
paths:
6+
- 'schemas/**'
7+
- '.github/workflows/bundle-schema.yml'
8+
workflow_dispatch:
9+
10+
jobs:
11+
bundle-schema:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
22+
- name: Install AJV CLI
23+
run: npm install -g ajv-cli
24+
25+
- name: Extract Version and Bundle Schema
26+
run: |
27+
VERSION=$(basename schemas/cyclonedx-bom-*.schema.json | sed -E 's/bom-([0-9]+\.[0-9]+)\.schema\.json/\1/')
28+
echo "Detected version: $VERSION"
29+
30+
mkdir -p dist
31+
32+
ajv compile \
33+
-s schemas/cyclonedx-bom-$VERSION.schema.json \
34+
-r schemas/cyclonedx-metadata-$VERSION.schema.json \
35+
-o dist/cyclonedx-bom-combined-$VERSION.schema.json \
36+
--strict=false
37+
38+
- name: Upload Combined Schema
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: bundled-schema
42+
path: dist/bom-*-combined.schema.json

CycloneDX Specifiation.xpr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project>
3+
<meta>
4+
<filters directoryPatterns="" filePatterns="\QCycloneDX Specifiation.xpr\E" positiveFilePatterns="" showHiddenFiles="false"/>
5+
<options/>
6+
</meta>
7+
<projectTree name="CycloneDX%20Specifiation.xpr">
8+
<folder path="."/>
9+
</projectTree>
10+
</project>

0 commit comments

Comments
 (0)