Skip to content

chore: pin the SPM checksum to wallet-bindings-v0.1.1 - #15

Merged
nullPointerEnjoyer merged 2 commits into
mainfrom
pin-spm-checksum-0.1.1
Nov 24, 2026
Merged

nullPointerEnjoyer merged 2 commits into
mainfrom
pin-spm-checksum-0.1.1

Conversation

@nullPointerEnjoyer

Copy link
Copy Markdown
Collaborator

Replaces #13 (branch rewritten as a single signed commit — the ruleset requires verified commits and the workflow-authored pin commit was unsigned).

Contents, unchanged in substance from #13:

  • Package.swift pinned to the wallet-bindings-v0.1.1 XCFramework checksum (9049519c…) exactly as published in the release SHA256SUMS.
  • Pin gate manifest fetch moved to gh api (runner gh rejects the gh release download flags); GITHUB_REPOSITORY validated and documented; both new fail-closed paths suite-covered (161 assertions, shellcheck clean).

Reviewer reports on this content: OCR 3 nits + code-security 2 nits, all addressed in the rewrite; no majors or blockers.

Pins Package.swift to the v0.1.1 XCFramework checksum published with the
wallet-bindings-v0.1.1 release, and hardens the pin gate's manifest
fetch: SHA256SUMS is resolved and read via gh api (the runner gh build
rejects the gh release download flags), GITHUB_REPOSITORY is validated
and documented, and the gate suite covers both new fail-closed paths.
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🔍 OpenCodeReview found 2 issue(s) in this PR.

  • ✅ Successfully posted inline: 0 comment(s)
  • 📋 Routed to summary by policy: 2 comment(s)

other · low

📄 scripts/release/pin-order-gate.sh (L101-L108)

⚠️ GitHub could not post this as an inline comment: Routed to summary (severity low · category other)

The metadata fetch conflates three distinct failure modes into one empty asset_url: a gh/API failure (auth, rate limit, network), a missing SHA256SUMS asset, and the jq error(...) for duplicate assets — all then reported as "missing or carries ambiguous SHA256SUMS assets". Behavior is still fail-closed, but an operator debugging an auth/token or rate-limit failure will be misdirected toward an asset-ambiguity investigation. Consider distinguishing the gh failure from the jq error (e.g. capture the exit code, or run the metadata call and the jq filtering as separate steps) so each closed path reports its actual cause.


test · low

📄 scripts/release/test-open-spm-pr.sh (L93-L93)

⚠️ GitHub could not post this as an inline comment: Routed to summary (severity low · category test)

The stub routes on $2 = "-H", i.e. the exact argument order of the gate's gh api -H "Accept: ..." "${asset_url}" call. If the gate ever reorders flags (e.g. gh api "${asset_url}" -H ...), the stub silently treats the sums-body call as a metadata call and returns asset JSON, and tests would fail for the wrong reason (mismatched output) rather than exercising the intended path. Consider a small loop that scans the args for the positional URL (repos/ prefix vs https://api.github.com/.../assets/) to make the routing argument-order independent.

Comment thread scripts/release/pin-order-gate.sh Resolved
@nullPointerEnjoyer
nullPointerEnjoyer merged commit 081fcb2 into main Nov 24, 2026
43 of 44 checks passed
@nullPointerEnjoyer
nullPointerEnjoyer deleted the pin-spm-checksum-0.1.1 branch November 24, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants