Skip to content

fix(build): install CycloneDX CLI via direct download in CI (unblock release SBOM step) - #3403

Merged
cachescrubber merged 1 commit into
mainfrom
fix/build-sbom-cyclonedx-install
Jul 24, 2026
Merged

cachescrubber merged 1 commit into
mainfrom
fix/build-sbom-cyclonedx-install

Conversation

@cachescrubber

Copy link
Copy Markdown
Contributor

Problem

The release pipeline's SBOM step fails in CI. build-sbom.sh installs the CycloneDX CLI with:

/home/linuxbrew/.linuxbrew/bin/brew install cyclonedx/cyclonedx/cyclonedx-cli

Current Homebrew refuses the untrusted cyclonedx/cyclonedx tap by default:

Skipping cyclonedx/cyclonedx because it is not trusted. Run `brew trust cyclonedx/cyclonedx` to trust it.
##[error]Broken pipe
##[error]Process completed with exit code 1

→ CycloneDX CLI never installs → build-sbom.sh fails → Release Build → Documentation step exits 1. The Maven build itself succeeds; only the SBOM step breaks. This blocks release.yml for every line (surfaced by the 1.1.5 release dry run).

Fix

Replace the CI Homebrew install with a direct pinned-binary download from the CycloneDX CLI GitHub releases — reproducible and free of any tap-trust dependency:

  • Pins v0.33.1, downloads cyclonedx-linux-<arch> (arch-detected: x64/arm64) into $RUNNER_TEMP, chmod +x, prepends to PATH.
  • Local-dev brew path is left unchanged.
  • Also guards $CI against set -u (${CI:-}).

Follow-up

Once merged, cherry-pick to release/2.1.x and release/1.1.x so today's 2.1.3 / 1.1.5 releases pick it up, then re-run the release dry runs to confirm green.

Homebrew now refuses the untrusted cyclonedx/cyclonedx tap, so
`brew install cyclonedx/cyclonedx/cyclonedx-cli` fails in CI and breaks
the release pipeline's SBOM step (Release Build → Documentation). Download
the pinned cyclonedx-linux-<arch> binary (v0.33.1) directly from GitHub
releases instead, and guard $CI against set -u.
@cachescrubber
cachescrubber requested a review from javahippie July 24, 2026 09:28

@javahippie javahippie 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.

If the builds are green, fine for me

@cachescrubber
cachescrubber merged commit e29b044 into main Jul 24, 2026
16 checks passed
cachescrubber added a commit that referenced this pull request Jul 24, 2026
…3404)

Homebrew now refuses the untrusted cyclonedx/cyclonedx tap, so
`brew install cyclonedx/cyclonedx/cyclonedx-cli` fails in CI and breaks
the release pipeline's SBOM step (Release Build → Documentation). Download
the pinned cyclonedx-linux-<arch> binary (v0.33.1) directly from GitHub
releases instead, and guard $CI against set -u.

(cherry picked from commit e29b044)
cachescrubber added a commit that referenced this pull request Jul 24, 2026
…3405)

Homebrew now refuses the untrusted cyclonedx/cyclonedx tap, so
`brew install cyclonedx/cyclonedx/cyclonedx-cli` fails in CI and breaks
the release pipeline's SBOM step (Release Build → Documentation). Download
the pinned cyclonedx-linux-<arch> binary (v0.33.1) directly from GitHub
releases instead, and guard $CI against set -u.

(cherry picked from commit e29b044)
@sonarqubecloud

Copy link
Copy Markdown

@cachescrubber
cachescrubber deleted the fix/build-sbom-cyclonedx-install branch July 24, 2026 15:25
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