Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2 # pack-airgapped.sh builds the console with it
- uses: oven-sh/setup-bun@v2 # pack-airgapped.sh builds the console with it
# rantaiclaw degrades to an unverified install when cosign is absent, so without
# this the weekly run would check the claw-ui signature by not checking it.
- uses: sigstore/cosign-installer@v3

- name: Fetch latest rantaiclaw (x86_64 linux gnu)
env:
Expand Down
11 changes: 11 additions & 0 deletions tests/airgapped-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ RC="${1:-${RC_BIN:-$(command -v rantaiclaw 2>/dev/null || true)}}"
[ -x "$RC" ] || { echo "✗ need a rantaiclaw binary: tests/airgapped-bundle.sh <path>"; exit 2; }
RC="$(cd "$(dirname "$RC")" && pwd)/$(basename "$RC")"
command -v bun >/dev/null 2>&1 || { echo "✗ bun is required to build the airgapped bundle"; exit 2; }
# rantaiclaw treats a missing cosign as a soft degrade — it warns and installs anyway.
# So without cosign the signature assertion below cannot pass and cannot mean anything
# either; demand it up front rather than reporting a failure whose real cause is
# "this host has no cosign".
command -v cosign >/dev/null 2>&1 || { echo "✗ cosign is required — this check exists to prove the claw-ui artifact was signed"; exit 2; }

W="$(mktemp -d)"; trap 'rm -rf "$W"' EXIT
TAG=v0.0.0-test
Expand All @@ -30,6 +35,12 @@ ck "claw-ui checksum verified" "grep -q 'SHA256 verified' '$W/pack.log'"
# Fails closed upstream when the signature bundle is missing, so a pass here means
# the artifact really was signed — not that verification was skipped.
ck "claw-ui signature verified" "grep -q 'cosign signature verified' '$W/pack.log'"
if ! grep -q 'cosign signature verified' "$W/pack.log"; then
# pack-airgapped.sh's output is captured, so without this the log says only "FAIL"
# and the reason stays in a temp file nobody sees.
echo " ↳ what pack-airgapped.sh reported instead:"
grep -iE 'cosign|signature|verif' "$W/pack.log" | head -5 | sed 's/^/ /'
fi

tar xzf "$REPO/dist/rantai-copilot-airgapped-$TAG-x86_64-linux.tar.gz" -C "$W"
BD="$W/rantai-copilot-airgapped-$TAG-x86_64-linux"
Expand Down