Skip to content
Merged
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
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,19 @@ jobs:
run: |
set -euo pipefail
go build -o /tmp/ref-stunt ./cmd/stunt
BIN="$(find dist -name stunt -path '*darwin_arm64*' | head -1)"
# The runner is linux: verify the binary it can execute. `stunt
# llm` embeds the same hand-maintained reference in every target,
# so a source-vs-artifact skew shows up on any platform; the
# remaining targets are pinned by checksums.txt.
BIN="$(find dist -name stunt -path '*linux_amd64*' | head -1)"
test -x "$BIN"
/tmp/ref-stunt llm > /tmp/ref.txt
"$BIN" llm > /tmp/dist.txt
if ! diff -u /tmp/ref.txt /tmp/dist.txt; then
echo "::error::shipped binary does not match this checkout (stunt llm differs) — refusing to trust the release artifacts"
exit 1
fi
echo "provenance check: shipped darwin_arm64 binary matches this checkout"
echo "provenance check: shipped linux_amd64 binary matches this checkout"

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down
Loading