1 #!/usr/bin/env sh2 # 16_release_evidence: build the SBOM and the reproducible release archive.3 # The release transaction owns the signed tag; this step proves the bytes.4 set -eu5 root=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)6 7 hu13=${HU13_BIN:-}8 if [ -z "$hu13" ]; then9 hu13=$(command -v hu13 2>/dev/null || true)10 fi11 if [ -z "$hu13" ] && [ -x "$root/../hu13/target/release/hu13" ]; then12 hu13=$root/../hu13/target/release/hu1313 fi14 if [ -z "$hu13" ]; then15 echo "16_release_evidence: hu13 is not available; release scripts will exercise this"16 exit 017 fi18 export HU13_BIN=$hu1319 20 "$root/scripts/sbom.sh" "$root/target/sbom-ci"21 one=$root/target/release-artifacts/0.0.0-ci22 two=$root/target/release-artifacts/0.0.0-ci-second23 rm -rf "$one" "$two"24 "$root/scripts/release-artifact.sh" 0.0.0-ci "$one"25 "$root/scripts/release-artifact.sh" 0.0.0-ci "$two"26 cmp "$one"/*.tar.gz "$two"/*.tar.gz27 "$hu13" audit artifact "$one"/*.tar.gz >/dev/null28 echo "16_release_evidence: SBOM and reproducible archive ok"