fleetlint Policy for a fleet of repositories
v0.8
Getting started

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).

Severityinfo
Tiers1
Artifactandroid-app
Scoperoot
Kindexpr
Sourcelibrary v0.5.0
Selected byfleetlint-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() > 0

Applies when

false

Check

true

Fix

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


Generated by fleetlint docs from catalog v0.5.0.