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

release/reproducible-build/any

Release builds are reproducible

The stack-neutral implementation of release/reproducible-build: it checks stacks without an implementation of their own and repositories where no stack is detected, and its satisfiers count for every stack.

Severityinfo
Tiers1
Stacksany
Scoperoot
Kindoutcome
Sourcelibrary v0.2.0
Selected byfleetlint-recommended@v0.2.0

Requirement

SOURCE_DATE_EPOCH is set for the release build, in a tag-triggered CI file or the task runner, so timestamps in the artifacts come from the commit.

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

Parameters

  • skip: ^\s*[@+-]*\s*(\{\{[^}]*\}\}\s*|\$[({][A-Za-z_]+[)}]\s*)?(#|//|echo\b|printf\b|(sudo\s+)?(go (install|get)|cargo b?install|pipx? install|pip3 install|python3? -m pip install|uv (tool |pip )?(install|add)|(npm|pnpm|yarn|bun) (i|install|add|global add)|gem install|bundle add|brew install|dotnet tool (install|update)|composer (global )?require|apt(-get)? install|curl|wget)\b[^;&]*$)

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.

See: https://fleetlint.org/baseline/#releases, https://reproducible-builds.org/docs/


Generated by fleetlint docs from catalog v0.2.0.