mirror of
https://github.com/marcoallegretti/karapace.git
synced 2026-03-26 21:43:09 +00:00
- Bump cargo-cyclonedx from 0.5.5 to 0.5.7 (supports lockfile v4) - Generate SBOM for karapace-cli crate only (single predictable file) - Fix --output-prefix → --override-filename (CLI change in 0.5.x) - Fix rmeta tampering test: accept build failure as valid defense (cargo rejects corrupted .rmeta with compilation errors)
10 lines
288 B
Bash
Executable file
10 lines
288 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
command -v cargo-cyclonedx >/dev/null 2>&1 || {
|
|
echo "Installing cargo-cyclonedx..."
|
|
cargo install cargo-cyclonedx@0.5.7 --locked
|
|
}
|
|
|
|
cargo cyclonedx --format json --override-filename karapace_bom
|
|
echo "SBOM written to karapace_bom.cdx.json"
|