Skip to content

Commit 8fcd494

Browse files
committed
version
Signed-off-by: Julio Jimenez <julio@clickhouse.com>
1 parent 1fcbd95 commit 8fcd494

File tree

2 files changed

+78
-2
lines changed

2 files changed

+78
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ detect_sbom_format() {
115115

116116
# Check if it's SPDX format
117117
if jq -e '.spdxVersion // .SPDXID' "$sbom_file" > /dev/null 2>&1; then
118-
echo "spdx"
118+
echo "spdxjson"
119119
return
120120
fi
121121

@@ -158,7 +158,7 @@ convert_sbom() {
158158
case "$desired_lower" in
159159
"cyclonedx")
160160
log_info "Converting $detected_format SBOM to CycloneDX format"
161-
if cyclonedx convert --input-file "$input_file" --output-file "$output_file" --output-format json; then
161+
if cyclonedx convert --input-file "$input_file" --input-format "$detected_format" --output-version 1_6 --output-file "$output_file" --output-format json; then
162162
log_success "SBOM converted to CycloneDX format"
163163
else
164164
log_error "Failed to convert SBOM to CycloneDX format"

test-cyclone.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"SPDXID": "SPDXRef-DOCUMENT",
3+
"creationInfo": {
4+
"created": "2025-06-17T14:03:08Z",
5+
"creators": [
6+
"Tool: protobom-v0.0.0-20250616135015-0166181cb123+dirty",
7+
"Tool: GitHub.com-Dependency-Graph"
8+
]
9+
},
10+
"dataLicense": "CC0-1.0",
11+
"name": "com.github.ClickHouse/ClickBOM",
12+
"spdxVersion": "SPDX-2.3",
13+
"documentNamespace": "https://spdx.org/spdxdocs/protobom/774f135c-3fad-4cd2-bf7b-1b128c052b87",
14+
"packages": [
15+
{
16+
"SPDXID": "SPDXRef-githubactions-actions-checkout-4..-75c946",
17+
"downloadLocation": "NOASSERTION",
18+
"externalRefs": [
19+
{
20+
"referenceCategory": "PACKAGE_MANAGER",
21+
"referenceLocator": "pkg:githubactions/actions/checkout@4.%2A.%2A",
22+
"referenceType": "purl"
23+
}
24+
],
25+
"filesAnalyzed": false,
26+
"name": "actions/checkout",
27+
"versionInfo": "4.*.*"
28+
},
29+
{
30+
"SPDXID": "SPDXRef-githubactions-aws-actions-configure-aws-credentials-4..-75c946",
31+
"downloadLocation": "NOASSERTION",
32+
"externalRefs": [
33+
{
34+
"referenceCategory": "PACKAGE_MANAGER",
35+
"referenceLocator": "pkg:githubactions/aws-actions/configure-aws-credentials@4.%2A.%2A",
36+
"referenceType": "purl"
37+
}
38+
],
39+
"filesAnalyzed": false,
40+
"name": "aws-actions/configure-aws-credentials",
41+
"versionInfo": "4.*.*"
42+
},
43+
{
44+
"SPDXID": "SPDXRef-github-ClickHouse-ClickBOM-main-c0418a",
45+
"downloadLocation": "git+https://github.com/ClickHouse/ClickBOM",
46+
"externalRefs": [
47+
{
48+
"referenceCategory": "PACKAGE_MANAGER",
49+
"referenceLocator": "pkg:github/ClickHouse/ClickBOM@main",
50+
"referenceType": "purl"
51+
}
52+
],
53+
"filesAnalyzed": false,
54+
"licenseDeclared": "Apache-2.0",
55+
"name": "com.github.ClickHouse/ClickBOM",
56+
"versionInfo": "main"
57+
}
58+
],
59+
"relationships": [
60+
{
61+
"spdxElementId": "SPDXRef-github-ClickHouse-ClickBOM-main-c0418a",
62+
"relatedSpdxElement": "SPDXRef-githubactions-actions-checkout-4..-75c946",
63+
"relationshipType": "DEPENDS_ON"
64+
},
65+
{
66+
"spdxElementId": "SPDXRef-github-ClickHouse-ClickBOM-main-c0418a",
67+
"relatedSpdxElement": "SPDXRef-githubactions-aws-actions-configure-aws-credentials-4..-75c946",
68+
"relationshipType": "DEPENDS_ON"
69+
},
70+
{
71+
"spdxElementId": "SPDXRef-DOCUMENT",
72+
"relatedSpdxElement": "SPDXRef-github-ClickHouse-ClickBOM-main-c0418a",
73+
"relationshipType": "DESCRIBES"
74+
}
75+
]
76+
}

0 commit comments

Comments
 (0)