Repository navigation
ci: read the SBOM from build/reports/cyclonedx/ - #259
Merged
Merged
Conversation
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>
Contributor
|
see apache/solr#4690 for related work.... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 readbuild/reports/application.cdx.json, which no longer exists.What that breaks today:
upload-artifact@v4defaults toif-no-files-found: warn, so the step passes and the artifact is silently missing. The latest main run (38251714095, on7cb39a3d) uploadedsolr-mcp-jar,test-resultsandcoverage-report, but nosolr-mcp-sbom.cpin "Attach SBOM to GitHub Release" exits non-zero. That failspublish-docker, andpublish-mcp-registry(needs: [..., publish-docker, ...]) never runs. This workflow only runs after a release vote, so nothing has hit it yet.Changes:
build/reports/cyclonedx/application.cdx.json.if-no-files-found: erroron both SBOM uploads, so a future change to the report path fails the job instead of dropping the artifact.Verified locally:
./gradlew buildon this branch writesbuild/reports/cyclonedx/application.cdx.jsonand nothing at the old path.🤖 Generated with Claude Code