Skip to content

sbom - #12570

Merged
DaanHoogland merged 4 commits into
apache:mainfrom
DaanHoogland:sbom
Nov 2, 2026
Merged

sbom#12570
DaanHoogland merged 4 commits into
apache:mainfrom
DaanHoogland:sbom

Conversation

@DaanHoogland

Copy link
Copy Markdown
Contributor

Description

This PR experiments with sboms (we have JS/VueJs, python, java and also dependencies on different systems. This PR is intended to see if automated Software Bills Of Material can be generated in a concise unified manner for components and maybe for install options..

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@codecov

codecov Bot commented Feb 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 3.68%. Comparing base (a5b6bc3) to head (db95289).

❗ There is a different number of reports uploaded between BASE (a5b6bc3) and HEAD (db95289). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (a5b6bc3) HEAD (db95289)
unittests 1 0
Additional details and impacted files
@@              Coverage Diff              @@
##               main   #12570       +/-   ##
=============================================
- Coverage     17.89%    3.68%   -14.22%     
=============================================
  Files          5936      452     -5484     
  Lines        532734    38385   -494349     
  Branches      65165     7102    -58063     
=============================================
- Hits          95347     1414    -93933     
+ Misses       426711    36784   -389927     
+ Partials      10676      187    -10489     
Flag Coverage Δ
uitests 3.68% <ø> (ø)
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codecov

codecov Bot commented Feb 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 20.76%. Comparing base (d6390bd) to head (5bb0856).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #12570      +/-   ##
============================================
- Coverage     20.76%   20.76%   -0.01%     
  Complexity    21903    21903              
============================================
  Files          6496     6496              
  Lines        591612   591612              
  Branches      72585    72585              
============================================
- Hits         122851   122836      -15     
- Misses       455424   455447      +23     
+ Partials      13337    13329       -8     
Flag Coverage Δ
uitests 3.88% <ø> (ø)
unittests 22.07% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@weizhouapache weizhouapache added this to the 4.24.0 milestone Jun 29, 2026

@vishesh92 vishesh92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm. didn't test.

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@ppkarwasz @raboof , can you help move this forwards? ;)

@sureshanaparti sureshanaparti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

no production code...

Copilot AI balanced review requested due to automatic review settings November 2, 2026 16:02
@DaanHoogland
DaanHoogland merged commit 4d2e712 into apache:main Nov 2, 2026
7 of 8 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to Done in CloudStack Testing Nov 2, 2026
@DaanHoogland
DaanHoogland deleted the sbom branch November 2, 2026 16:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

5 open issues
What changed in this PR

Adds initial support for generating CycloneDX SBOMs across UI (npm), Java (Maven), and Marvin (Python) components via Maven configuration and a GitHub Actions workflow.

Changes:

  • Add CycloneDX Maven plugin configuration to generate an aggregate Java SBOM.
  • Introduce a GitHub Actions workflow to generate and upload SBOM artifacts for UI, Java, and Marvin.
  • Add dependency resolution logic for Marvin to produce a lock-like frozen requirements list for SBOM generation.
File Description
pom.xml Adds CycloneDX Maven plugin configuration to produce an aggregate SBOM during Maven builds.
.github/​workflows/​sbom.yml New workflow to generate SBOMs for UI/Java/Marvin and upload them as artifacts on tag pushes or manual runs.

Review effort: Lite

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'
Comment on lines +38 to +46
- name: Generate UI SBOM
uses: sbomify/sbomify-action@master
env:
LOCK_FILE: ui/package-lock.json
OUTPUT_FILE: sbom.ui.cdx.json
COMPONENT_NAME: cloudstack-ui
COMPONENT_VERSION: ${{ github.ref_name }}
UPLOAD: false
ENRICH: true
Comment on lines +105 to +113
- name: Generate marvin SBOM
uses: sbomify/sbomify-action@master
env:
LOCK_FILE: marvin-requirements.txt
OUTPUT_FILE: sbom.marvin.cdx.json
COMPONENT_NAME: cloudstack-marvin
COMPONENT_VERSION: ${{ github.ref_name }}
UPLOAD: false
ENRICH: true
Comment thread pom.xml
Comment on lines +886 to +890
<phase>package</phase>
<inherited>false</inherited>
<goals>
<goal>makeAggregateBom</goal>
</goals>
Comment thread pom.xml
<configuration>
<projectType>application</projectType>
<schemaVersion>1.6</schemaVersion>
<includeBomSerialNumber>true</includeBomSerialNumber>
@ppkarwasz

Copy link
Copy Markdown
Member

Sorry, I missed this notification.

I'll try to look at it this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

6 participants