Repository navigation
Releases
v1.4.2
Fixes
- The GitHub Action reports a run that does not attest (#63, fixed in #64). The step ended on the
attest.shline under errexit, so the log showed onlyProcess completed with exit code 1and no output was set. It now prints the report, sets the outputs from the verdict withattested=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
Fixes
- Attest Safe transactions whose
dataexceeds 128 KiB, the Linux limit on one command-line argument (#59, fixed in #60). On a large batch,normalize.shemitted emptymultiSendcalldata and exited 0,derive.shhashed it, and only the Solidity cross-check failed the run.normalize.sh,derive.sh,nested.shandlanded.shnow pass transaction data tojqandcaston stdin or from files, andmultiSend(bytes)is encoded with shell builtins. - A failed ABI encoding in
normalize.shorderive.shstops the run. Inside a nested command substitution,set -edid 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
New features
- Add
zeus-traces: attest the calls of a ZeusMultisigBuilderscript, which writes no file, from the traces of its ownforge scriptrun. The Safe and call type come from exactly oneZeusRequireMultisigevent, and the batch is the entry call's direct successfulCALLs made as the multisig. A reverted call, a call the script makes as itself, aCREATEorDELEGATECALL, a second event or no calls fails the run. Needsrpc_env,fork_block, andmultisend_addressfor several calls. New run keysig(defaultexecute()). 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 asapproveHash(h)followed by the parent transaction, as Safe0xb291…Afefsent 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 defaultplainis unchanged, and the verdict recordsnested.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
safeAddressin 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,refundReceiverornoncedisagrees with the claim, or isnull. The readers took onlyto,value,dataandoperation, so such a value was dropped without an error. Anonceof 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
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) andsafe-utils. Implemented in #45. - Add
safe-service: read an exported Safe Transaction Service proposal request. CarriedcontractTransactionHashandsafeTxHashvalues must match the independently derived hash. It never fetches from the service. Profiles:safe(default) andsafe-utils. Implemented in #46. - Add the
static-v1profile fortx-builder: encode decodedcontractMethodandcontractInputsValuesentries with scalaraddress,bool,uint8anduint256inputs.tx-builder-decodedis 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
Producer configuration
- Add
[run.env]for literal inputs scoped to each producer run. The verdict records the values used. - Add
[run.defaults]for sharedinput_format,batch_mode,safe_versionandmultisend_addresssettings. 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_setupusing 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
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.0A 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_commitis not a full SHA, oroutput_pathleaves the producer repo. --require-liveis set andsafe_network,safe_addressorsafe_nonceis blank.
Security fixes
- Live check: competing transactions. When several transactions shared the claim's nonce,
safe-tx-hashes-utilprompted 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.--proposerefuses 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 testexits 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_commitis checked before git sees it.output_pathmust stay inside the clone, including through a symlinked directory. (#24) - Committed output files.
output_pathis 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-livewith 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_TEMPinstead of/tmp. (#24) - Producer environment.
SAFE_API_KEYis 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-txandattest-safe-txskills and a byte-stable producer template. (#14)
Full changelog: v1.0.0...v1.1.0
v1.0.0
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: truePut 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
- Clones the producer at a pinned commit and verifies the checked-out SHA.
- Re-runs its Forge script.
- Hashes the emitted JSON against a pinned sha256.
- Normalises any supported Safe JSON shape — flat
safe-tx, Transaction Builder batch, or baretx-array— to one canonical SafeTx. - Derives the EIP-712 digest two independent ways (cast and Solidity, folding batches separately so a bug in one cannot hide in the other).
- 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-versiondefaults to a pinned release, notstable—forgere-runs the producer's script, so a moving toolchain can move the output bytes. The verdict records what actually ran, andexpected_forge_versionmakes it enforceable.- Hash-critical
lib/files are checksummed inVENDORED.mdand 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.