Skip to content

v0.20.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Aug 16:29
· 177 commits to main since this release
037003b

A correctness release. Five checks could previously report success without verifying anything, or verify the wrong thing.

Upgrade notes

Each of these can turn a check that passed on v0.19.0 red on v0.20.0. That is the point — the old result was not trustworthy — but it may need action in existing pipelines.

Change What used to happen
Version constraints read the right number s3cmd version 2.3.0 parsed as 3.0.0, so --min/--max/--exact/--range answered about a digit in the program name. Also affected bzip2, log4j, x264, p7zip.
file size/content flags reject directories preflight file /etc --min-size 999999999 reported [OK]. --not-empty, --min-size, --max-size, --contains and --match all skipped the constraint on a directory.
cmd --match no longer suppresses version constraints --match 'git version' --min 99 reported [OK] while --min 99 alone correctly failed.
preflight run executes every check It stopped at the first failure, hiding every check after it. Exit code is now 1 if any check failed, rather than the first child's code.
install.sh will not install an unverified binary With neither sha256sum nor shasum present it warned and installed anyway. Set PREFLIGHT_SKIP_CHECKSUM=1 to opt out deliberately.

Also in this release

  • .preflight files support quoted arguments, so a value may contain a space: env GREETING --exact "hello world". Single quotes are literal, which keeps regexes and JSON intact.
  • Multi-line check output is readable again. A program's own line breaks are preserved and indented instead of escaped to \n, so a failing preflight cmd shows real help text. A checked program still cannot forge a result line — those start at column 0 and nothing it emits ever does.
  • --exact "" asserts an empty value in env and json, instead of being indistinguishable from omitting the flag.

What's Changed

  • Fix version extraction picking digits out of program names by @vertti in #239
  • Fix file size and content checks silently passing on directories by @vertti in #240
  • Run every check in a .preflight file, not just up to the first failure by @vertti in #243
  • Fix --match silently disabling version constraints in cmd check by @vertti in #241
  • Add quoting to .preflight files so arguments can contain spaces by @vertti in #244
  • Update ghcr.io/vertti/preflight:latest Docker digest to e108e90 by @renovate[bot] in #242
  • Fail the installer when it cannot verify the downloaded binary by @vertti in #246
  • Remove a redundant null branch and a stale gjson comment in jsoncheck by @vertti in #247
  • Print multi-line check details as indented lines, not escaped newlines by @vertti in #245
  • Make --exact "" assert an empty value in env and json checks by @vertti in #248

Full Changelog: v0.19.0...v0.20.0