release/reproducible-build/android-app
Release builds are reproducible
Implements release/reproducible-build for the android-app artifact: it runs when the release publishes one (see artifacts).
| Severity | info |
| Tiers | 1 |
| Artifact | android-app |
| Scope | root |
| Kind | expr |
| Source | library v0.5.0 |
| Selected by | fleetlint-recommended@v0.5.0 |
Requirement
a reproducible APK needs a pinned toolchain and a build that avoids per-build identifiers; fleetlint does not check Gradle for it. Not checked.
Why
When anyone can rebuild a release bit for bit from the tag, a tampered artifact or a compromised build machine shows up as a mismatch.
Capability applies when
release.exists || repo.artifacts.size() > 0Applies when
falseCheck
trueFix
Set the stack’s reproducibility options in the release build (see https://reproducible-builds.org/docs/) and export SOURCE_DATE_EPOCH from the commit time.
Agent instruction: Add the stack’s reproducibility settings to the release build and derive SOURCE_DATE_EPOCH from git log -1 --format=%ct; do not change what is built.
Sources
- https://reproducible-builds.org/docs/ (standard, Achieve deterministic builds)
- https://reproducible-builds.org/docs/source-date-epoch/ (spec)
- https://fleetlint.org/baseline/#releases
Generated by fleetlint docs from catalog v0.5.0.