AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 35 Bitcoin

fix: build-docker.sh: fix --no-init usage

Public commit record

What the developer wrote

Authored by Andrew Kozlik

80/100 · Strong
fix: build-docker.sh: fix --no-init usage

1. With --no-init the snapshot's checkout stayed pinned at the commit it was
created from, so re-running for a branch that has moved would silently build
the old sources.

2. Dereference annotated tag objects correctly when resolving COMMIT_HASH.

3. Abort if shell.nix changed since the environment was initialized.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a build script used to create Trezor firmware inside Docker. Previously, when reusing an existing build environment, the script could silently build old source code instead of the requested branch or tag. It also now correctly resolves annotated Git tags to actual commits and stops the build if the environment setup file changed. These are reliability and supply-chain integrity fixes rather than a direct remote exploit, but a stale build could lead to shipping unintended or older firmware.

Recommended action

Treat as a build-integrity hardening patch. Verify that release builds using build-docker.sh with --no-init now produce artifacts matching the requested tag/commit and that CI/release workflows pick up this fix before the next firmware release.

Security signals we found

01

Silent stale-source build risk under --no-init

02

Annotated tag dereference fix prevents tag-vs-commit mismatch

03

Environment drift check prevents building with outdated toolchain/environment

04

Supply-chain/build-integrity hardening in release build script

Risk score

Why this scored 35/100

Our methodology →
Potential impact 8/30
Exploitability 5/25
Stealth signal 7/15
Affected reach 6/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.