Skip to content

Releases

v1.4.2

Choose a tag to compare

@pegahcarter pegahcarter released this 29 Nov 19:01
Immutable release. Only release title and notes can be modified.
fe3c080

Fixes

  • The GitHub Action reports a run that does not attest (#63, fixed in #64). The step ended on the attest.sh line under errexit, so the log showed only Process completed with exit code 1 and no output was set. It now prints the report, sets the outputs from the verdict with attested=false, and fails the step. A run that ends before a verdict prints its report, says no verdict was produced, and sets no outputs.

A failed run now fills in safe-tx-hash, canonical-sha256 and child-safe-tx-hash whenever the verdict has them. A later step that runs after the failure (if: failure() or continue-on-error: true) must check attested before using a hash.

Documentation

  • The README tells signers not to sign a Crossecute Safe-signed dispatch with attest.sh --attest, and to sign it with the Crossecute SDK instead (#62).

attest.sh and lib/ are the same as in v1.4.1, so verdicts and canonical bytes are unchanged.

Validation

CI passed on the release commit: tests, action attestation, the action's failing-claim job and CodeQL. Release commit fe3c0808b00ed295d345251246e7ec0a0b486b78.

v1.4.1

Choose a tag to compare

@pegahcarter pegahcarter released this 29 Nov 14:55
Immutable release. Only release title and notes can be modified.
ac95bde

Fixes

  • Attest Safe transactions whose data exceeds 128 KiB, the Linux limit on one command-line argument (#59, fixed in #60). On a large batch, normalize.sh emitted empty multiSend calldata and exited 0, derive.sh hashed it, and only the Solidity cross-check failed the run. normalize.sh, derive.sh, nested.sh and landed.sh now pass transaction data to jq and cast on stdin or from files, and multiSend(bytes) is encoded with shell builtins.
  • A failed ABI encoding in normalize.sh or derive.sh stops the run. Inside a nested command substitution, set -e did not see the failure.

Canonical bytes are unchanged for claims that attested before.

Validation

CI passed on the release commit: tests, action attestation and CodeQL. Release commit ac95bde3d0bf30530bf0140e63f69887bf663720.

v1.4.0

Choose a tag to compare

@pegahcarter pegahcarter released this 06 Nov 22:13
Immutable release. Only release title and notes can be modified.
9e76385

New features

  • Add zeus-traces: attest the calls of a Zeus MultisigBuilder script, which writes no file, from the traces of its own forge script run. The Safe and call type come from exactly one ZeusRequireMultisig event, and the batch is the entry call's direct successful CALLs made as the multisig. A reverted call, a call the script makes as itself, a CREATE or DELEGATECALL, a second event or no calls fails the run. Needs rpc_env, fork_block, and multisend_address for several calls. New run key sig (default execute()). Implemented in #51.
  • Add capture = "safe-utils": run an unchanged safe-utils proposal script and attest the request it would have posted. The runner intercepts each inline JSON POST to the Safe Transaction Service, binds its Safe and nonce to a claim, and answers locally. Nothing is forwarded, and no producer wrapper or export method is needed. Missing, duplicate, unclaimed or unsupported requests fail verification. It accepts the redirect options upstream safe-utils sends (-L, --max-redirs 0-99, --proto =https). Implemented in #54 and #56.
  • Add child_approval = "preimage-suffix" for nested claims: build the child Safe's approval as approveHash(h) followed by the parent transaction, as Safe 0xb291…Afef sent for Aave v4 nonce 447. The suffix is rebuilt from the folded parent transaction in bash and in Solidity, and the two must agree. The default plain is unchanged, and the verdict records nested.approval. Implemented in #55.

Canonical bytes and on-chain cost are unchanged for existing claims. Verdicts gain sig, capture and nested.approval only when the feature is used.

Fixes

  • Honor ether.fi's top-level safeAddress in encoded Transaction Builder batches. Every Safe declaration (safeAddress, safe, meta.createdFromSafeAddress) must agree with the others and with the claim. Before, a contradicting claim was accepted (#52).
  • Refuse a batch entry whose safeTxGas, baseGas, gasPrice, gasToken, refundReceiver or nonce disagrees with the claim, or is null. The readers took only to, value, data and operation, so such a value was dropped without an error. A nonce of 0 is accepted as the placeholder some producers write (#53).

Not supported

capture is a transport adapter, not a network sandbox: absolute curl paths, other HTTP clients, a replaced PATH and arbitrary FFI bypass it. zeus-traces was tried with forge 1.8.1 only and differs on purpose from the Zeus CLI's caller filter (foundry-rs/foundry#10050). Other child approval layouts need their own profile.

Validation

CI passed on the release commit: tests, action attestation and CodeQL. Release commit 9e76385ac2f96f171ceb9391cf9e8298e2d408cf. Documentation for each feature is in the README and docs/producer-readers.md.

v1.3.0

Choose a tag to compare

@pegahcarter pegahcarter released this 05 Nov 17:09
Immutable release. Only release title and notes can be modified.
09b0c9b

New producer formats

  • Add safe-eip712: read a complete Safe EIP-712 typed-data envelope. The Safe and chain come from the domain, and every signed field from the message. Profiles: safe (default) and safe-utils. Implemented in #45.
  • Add safe-service: read an exported Safe Transaction Service proposal request. Carried contractTransactionHash and safeTxHash values must match the independently derived hash. It never fetches from the service. Profiles: safe (default) and safe-utils. Implemented in #46.
  • Add the static-v1 profile for tx-builder: encode decoded contractMethod and contractInputsValues entries with scalar address, bool, uint8 and uint256 inputs. tx-builder-decoded is an alias. Implemented in #47.

All three fold into the existing canonical SafeTx. Canonical bytes, verdict fields and on-chain cost are unchanged, and the ordinary batch reader is unchanged without the opt-in. Shell and Solidity derive each format independently.

Documentation

  • The README has a format selection table and, for each new format, an input example, a claim snippet and the accepted and refused cases (#49). Profile details are in docs/producer-readers.md.

Not supported

Console output, DataToSign events and hash-only signing data for typed data. Arrays, tuples, dynamic types, other integer widths and delegatecall entries under static-v1; use producer-encoded calldata for those.

Validation

CI passed on the release commit: tests, action attestation and CodeQL. Implemented in #45, #46, #47 and #49. Release commit 09b0c9b69f1b779ffb5938899775f93d2e423528.

v1.2.0

Choose a tag to compare

@pegahcarter pegahcarter released this 04 Nov 20:47
Immutable release. Only release title and notes can be modified.
9d8905b

Producer configuration

  • Add [run.env] for literal inputs scoped to each producer run. The verdict records the values used.
  • Add [run.defaults] for shared input_format, batch_mode, safe_version and multisend_address settings. Claims can override or clear them.
  • Keep Safe addresses, chain IDs, nonces, service settings and expected hashes explicit per claim, supporting multiple Safes in one script.
  • Document dependency installation through producer_setup using the pinned producer lockfile.

Execution controls

  • Resolve Forge to an absolute path from the verifier environment before running producer setup.
  • Reserve command lookup, shell startup and loader environment settings.
  • Resolve RPC inputs directly from the parsed run environment or inherited environment.

Validation

293 shell checks, Solidity tests, action attestation and CodeQL passed. Regression coverage includes multiple Safes at the same nonce, run isolation, default overrides, reserved environment names and Forge shadowing.

Implemented in #41. Release commit 9d8905bee25689f0346dfd3db2cc4a5cad0ce31f.

v1.1.0

Choose a tag to compare

@pegahcarter pegahcarter released this 30 Oct 15:28
Immutable release. Only release title and notes can be modified.
72523f7

Adds attest.sh --propose and the Claude Code skills and hardens the verifier, the live check and the GitHub Action.

Upgrade

Pin the commit SHA of this release, as before:

- uses: crossecute/forge-attest@<v1.1.0 commit sha> # v1.1.0

A claim that attested under v1.0.0 can now report NOT ATTESTED in these cases. Each one is what the change exists to catch:

  • No expected_* hash is pinned. A run with nothing pinned ties the output to nothing anyone reviewed.
  • Another transaction is queued at the claim's nonce, with or without --require-live.
  • The claim repeats a key or uses a [table] header, producer_commit is not a full SHA, or output_path leaves the producer repo.
  • --require-live is set and safe_network, safe_address or safe_nonce is blank.

Security fixes

  • Live check: competing transactions. When several transactions shared the claim's nonce, safe-tx-hashes-util prompted for an index on the run's stdin. In CI this ran until the 60 s timeout and the check was skipped as unreachable. The run now fails in this state. --propose refuses the same state. (#24)
  • Live check: parsing and output. The live hash is read only from the checker's own result line, and only when there is exactly one. The checker's output is filtered to printable text before it is shown. (#24)
  • Solidity cross-check fails closed. forge test exits 0 when no test matches, so a test filter in the environment made the cross-check report agreement without running. A cross-check that writes no hash now fails. (#24)
  • Claim parsing. Repeated keys and [table] headers are refused, because the reader and a TOML parser could disagree about which value counts. producer_commit is checked before git sees it. output_path must stay inside the clone, including through a symlinked directory. (#24)
  • Committed output files. output_path is deleted before the producer's script runs, so a committed copy the script did not write is never attested. (#20)
  • Unpinned claims. A claim with no expected hash pinned reports NOT ATTESTED. (#16)
  • --require-live with blank Safe fields now fails instead of skipping. (#21)
  • Action job summary. Config-derived strings, which a fork PR controls, are escaped in the summary, and the full report can no longer close its code fence. Verdict files live under $RUNNER_TEMP instead of /tmp. (#24)
  • Producer environment. SAFE_API_KEY is removed from the environment of the producer's setup and script. (#24)

New

  • attest.sh --propose -- <cast wallet flags> signs an attested transaction and proposes or confirms it on the Safe Transaction Service. It refuses if a different transaction is queued at the nonce or the signer is not an owner, and it validates every service value it uses. (#17, #23)
  • Claude Code plugin with build-safe-tx and attest-safe-tx skills and a byte-stable producer template. (#14)

Full changelog: v1.0.0...v1.1.0

v1.0.0

Choose a tag to compare

@pegahcarter pegahcarter released this 05 Aug 19:30
Immutable release. Only release title and notes can be modified.

Prove that a Gnosis Safe transaction is exactly the output of a specific Forge script — and was not manipulated on its way to the Safe.

First tagged release. The verifier has been in use and continuously self-attesting; this packages it for consumption from anyone's CI.

Use it as an action

- uses: actions/checkout@v4
- uses: xsafe/forge-attest@<commit-sha>
  with:
    config: attest.toml
    require-live: true

Put attest.toml in your ops repo, point producer_repo at it, and pin the values the script must produce.

Pin a commit SHA, not a tag. A tag is mutable, and whoever can move it decides what "verified" means in your pipeline — the exact property this tool exists to remove. A SHA pins the action, attest.sh, lib/, and the Solidity cross-check together, because they are one repository at one commit. The v1 tag exists for convention; the SHA is the recommendation.

What it checks

  1. Clones the producer at a pinned commit and verifies the checked-out SHA.
  2. Re-runs its Forge script.
  3. Hashes the emitted JSON against a pinned sha256.
  4. Normalises any supported Safe JSON shape — flat safe-tx, Transaction Builder batch, or bare tx-array — to one canonical SafeTx.
  5. Derives the EIP-712 digest two independent ways (cast and Solidity, folding batches separately so a bug in one cannot hide in the other).
  6. Optionally compares against what is actually queued, via the Safe Transaction Service.

Nested Safes are supported: the approval a child Safe must send is re-derived from the parent rather than read back from it, and the verdict states the nonce condition under which it stays valid.

Machine-readable verdicts

--json puts the verdict on stdout and the human report on stderr:

{
  "attested": true,
  "toolchain": { "forge": "1.7.1-stable", "producer_solc": "0.8.28" },
  "hashes": { "safe_tx": "0xd0e33f3b…", "canonical_sha256": "9057b9be…", "safe_tx_live": "" },
  "failures": []
}

A skipped check serialises as "" — an empty safe_tx_live means the live check did not run, which is not the same as passing.

Supply chain

  • Third-party actions pinned by commit SHA; Dependabot keeps them moving.
  • foundry-version defaults to a pinned release, not stable — forge re-runs the producer's script, so a moving toolchain can move the output bytes. The verdict records what actually ran, and expected_forge_version makes it enforceable.
  • Hash-critical lib/ files are checksummed in VENDORED.md and asserted by the test suite.

Requirements

git, Foundry (forge + cast), jq, sha256sum, bash. The action installs Foundry for you.

Licence

MIT, except lib/safe_hashes.sh, which is vendored from safe-tx-hashes-util and stays AGPL-3.0-only. See NOTICE. The four offline checks never invoke it.

Read before trusting it

forge-attest proves provenance, not intent — it cannot tell you a transaction does what you want. And running a claim runs the code it names: producer_setup is bash -c, so whoever can edit attest.toml executes code on the runner. Never wire it to pull_request_target. See the threat model in the README.