Repository navigation
sbom: allow-listed generators and an sbom Maven profile - #14570
DaanHoogland wants to merge 2 commits into
Conversation
…into an sbom profile
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14570 +/- ##
=========================================
Coverage 20.77% 20.78%
- Complexity 21914 21932 +18
=========================================
Files 6496 6496
Lines 591629 591656 +27
Branches 72590 72592 +2
=========================================
+ Hits 122915 122965 +50
+ Misses 455375 455347 -28
- Partials 13339 13344 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🔴 Test Coverage Grade:
|
| Metric | Value |
|---|---|
| Line coverage | 25.89% |
| Branch coverage | 20.22% |
Grade Scale
| Grade | Line Coverage | Meaning |
|---|---|---|
| 🟢 A | ≥ 80% | Excellent - this code sleeps well at night 😴 |
| 🟡 B | 60-79% | Good - almost there, don't stop now 😉 |
| 🟠 C | 40-59% | Acceptable - your code is wearing a seatbelt, but no airbags 😬 |
| 🔴 D | 20-39% | Marginal - boldly shipping where no test has gone before 🖖 |
| ⛔ F | < 20% | Failing - tests? what tests? 🔥 |
Branch coverage is shown as a secondary signal. Grade is determined by line coverage.
View full Actions run
|
Thanks @DaanHoogland - ASF Allowlist Check now passes. Is the Copilot comment relevant or should it be ready for review as it is now? |
I don't know yet @nvazquez . It seems like a serious warning (and it is a comment on a sonar warning) , But i have no idea of an alternative yet. /me looking |
should be fixed now @nvazquez |
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19910 |
nvazquez
left a comment
There was a problem hiding this comment.
LGTM - packaging and CI jobs passing
|
@nvazquez a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
RosiKyu
left a comment
There was a problem hiding this comment.
@DaanHoogland I ran the "generate sboms" workflow on this branch:
https://github.com/apache/cloudstack/actions/runs/42222775850
ui sbom fails: https://github.com/apache/cloudstack/actions/runs/42222775850/job/127908632825
npm error invalid: axios@0.21.4
Error: Process completed with exit code 254.
The new cyclonedx-npm step checks ui/package-lock.json against ui/package.json, and they don't match (axios 0.21.4 vs ^0.31.1).
Can you update the lockfile in this PR so the step passes?
java sbom also fails: https://github.com/apache/cloudstack/actions/runs/42222775850/job/127908633180
Marvin sbom passes.



Description
Follow-up to #12570.
sbomify/sbomify-action@master. The action is not on the ASF GitHub Actions allow-list (apache/infrastructure-actions), so the UI and marvin SBOM jobs would not be allowed to run. The SBOMs are now generated with the CycloneDX command-line tools, pinned to a version, inrun:steps:@cyclonedx/cyclonedx-npm6.0.1 fromui/package-lock.json, without dev dependencies (build tooling that is not shipped in the UI bundle).actions/setup-nodeis added because the tool needs Node 20.18 or later.cyclonedx-bom7.5.0 (cyclonedx-py environment) on the venv marvin's dependencies are installed into. This adds license data that thepip freezelist didn't have. The generator runs from its own venv so it doesn't show up in marvin's SBOM.sbomprofile. Until now it was bound topackagefor every build. It now only runs with-Psbom(or-Dsbom) and is bound tovalidate.makeAggregateBomresolves the whole reactor from the root before any module is built, so the java-sbom job no longer needs a build:mvn -Dnoredist -Psbom validatewritestarget/ACS.sbom.{json,xml}in about a minute.The tag filter
[0-9]+.[0-9]+.[0-9]+*is unchanged. In GitHub's filter syntax+means one or more of the preceding character, so it matches release tags like4.22.0.0.Types of changes
How Has This Been Tested?
mvn -B -ntp -Dnoredist -Psbom validatelocally: build success, 583 components (154 CloudStack modules, including the noredist ones), 569 with license data. Without-Psbomthe plugin is no longer part of the build.generate sbomsworkflow on this branch.🤖 Generated with Claude Code