Repository navigation
[AI-0346] chore(ci): re-vendor hardened workflow-publish script - #19
Conversation
Byte-identical re-vendor of bitty-ai@03e7d3b scripts/workflow-publish.sh (sha256 6b67579c9499d24c4d0ef69802901d5324a929f241091ded32de6a85c0b8e518): remote-main source verification, a fail-closed JSON top-level redaction guard, and a pinned publication commit for the push. just workflow-publish already delegates to this script; no other file changes. Refs bitty-ai#543
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Priority: P2 | Area: ci | Labels: chore, P2 | Milestone: v0.1.0 | RFC: none | Task: AI-0346
Refs bitty-ai#543.
Summary
Re-vendors the hardened
scripts/workflow-publish.shfrom bitty-ai main03e7d3b(bitty-ai#550) byte-identically. The script now verifies HEAD against a freshly fetchedorigin/mainfor every checkout (including branchmain), parses the top-levelredactedJSON boolean, pins the validated snapshot commit through push, and fails closed before export/push.Only the script changed;
just workflow-publishalready invokes it. Canonical SHA-256:6b67579c9499d24c4d0ef69802901d5324a929f241091ded32de6a85c0b8e518.Verification
shellcheck -S warning,shfmt -d,actionlint, andgit diff --checkpass. No behavior outside the vendored script; no secrets.Summary by CodeRabbit
redactedvalue set totrue; otherwise, publishing is stopped.