Skip to content

ci: read the SBOM from build/reports/cyclonedx/ - #259

Merged
epugh merged 1 commit into
apache:mainfrom
adityamparikh:fix/sbom-report-path
Oct 26, 2026
Merged

epugh merged 1 commit into
apache:mainfrom
adityamparikh:fix/sbom-report-path

Conversation

@adityamparikh

Copy link
Copy Markdown
Contributor

cyclonedx 3.4.1 writes the SBOM to build/reports/cyclonedx/application.cdx.json. That is the path the license-notice plugin already reads (buildSrc/src/main/kotlin/org.apache.solr.mcp.license-notice.gradle.kts:96) and the one AGENTS.md documents. Both workflows still read build/reports/application.cdx.json, which no longer exists.

What that breaks today:

  • build-and-publish.yml: "Upload SBOM artifact" matches no file. upload-artifact@v4 defaults to if-no-files-found: warn, so the step passes and the artifact is silently missing. The latest main run (38251714095, on 7cb39a3d) uploaded solr-mcp-jar, test-results and coverage-report, but no solr-mcp-sbom.
  • release-publish.yml: the cp in "Attach SBOM to GitHub Release" exits non-zero. That fails publish-docker, and publish-mcp-registry (needs: [..., publish-docker, ...]) never runs. This workflow only runs after a release vote, so nothing has hit it yet.

Changes:

  • Point both workflows at build/reports/cyclonedx/application.cdx.json.
  • Set if-no-files-found: error on both SBOM uploads, so a future change to the report path fails the job instead of dropping the artifact.

Verified locally: ./gradlew build on this branch writes build/reports/cyclonedx/application.cdx.json and nothing at the old path.

🤖 Generated with Claude Code

cyclonedx 3.4.1 writes the SBOM to build/reports/cyclonedx/application.cdx.json
(the path the license-notice plugin already reads), but both workflows still
pointed at build/reports/application.cdx.json.

- build-and-publish.yml: the "Upload SBOM artifact" step finds no file and,
  with upload-artifact's default if-no-files-found: warn, passes anyway. Runs
  on main produce no solr-mcp-sbom artifact.
- release-publish.yml: the cp in "Attach SBOM to GitHub Release" fails, which
  fails publish-docker and skips publish-mcp-registry, which needs it.

Point both at the real path and set if-no-files-found: error on both uploads
so a future path change fails the build instead of dropping the artifact.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Aditya Parikh <aditya.m.parikh@gmail.com>
@epugh

epugh commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

see apache/solr#4690 for related work....

@epugh
epugh merged commit b1f3dfe into apache:main Oct 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants