Skip to content

Release v2.3.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 18:10
· 34 commits to main since this release
bb3f2a7

[2.3.0] - 2026-10-10

Minor release: new features, no removals.

Added

  • .github/required-checks.txt, and a test that keeps it honest. The
    required status check names in main's branch protection have to match the
    job names quality.yml actually produces. When the runners were renamed from
    ubuntu-latest/macos-latest to ubuntu-24.04/macos-15, branch protection
    still required the old names and blocked a merge of an entirely green PR.
    tests/required-checks.bats now derives the expected names from the workflow
    itself and fails with instructions if they drift from the file.

  • make verify-protection. Local and read-only: asks GitHub what the
    required checks actually are and compares them with the file. Not in CI and
    not in ci-local, because it needs gh and because it asserts remote state.

  • scripts/lib/ruby_gem_health.sh and the Ruby/gem guard.
    On 2026-09-16 a root gem update --system wrote a 591-file RubyGems tree into
    /opt/homebrew/lib/ruby/site_ruby, blocking brew link and brew cleanup
    while every other check still read PASS. The new library checks root
    ownership under Homebrew and ~/.gem, site_ruby overrides, gem -v
    against the RubyGems actually shipped by the active Homebrew Ruby, dangling
    plugins and dead shebangs, and duplicate gem versions.

  • templates/guard.zsh. The zsh guard is now under version control instead
    of living only in one machine's ~/.config/zsh. It refuses sudo for gem
    or brew by basename, refuses any unambiguous abbreviation of gem update --system (--sy, --sys, --syst, --syste), prints a refusal that names
    the command refused, and prints a bypass line that is runnable as typed. It
    covers interactive shells only and does not cover a program that shells out,
    such as topgrade; that limit is documented in the file and asserted by test.

  • scripts/mac-routine.sh. Runs topgrade, mo clean, brew doctor and
    brew cleanup in order, measuring root-owned counts and gem -v between
    steps and stopping the routine the moment either drifts. Never uses sudo,
    never deletes, passes --no-ask-retry so a prompt cannot hang it.

  • make ci-local. Prints the local bash, bats, shellcheck and shfmt
    versions, warns when any differs from the pins in
    .github/workflows/quality.yml, then runs CI's steps in order.

  • make test-bash32. Runs the whole suite under /bin/bash, which is bash
    3.2 on macOS and older than anything a Linux CI runner has. Skips with a
    clear message where /bin/bash does not exist.

  • tests/safety.bats. A suite-wide PATH fence puts recording fakes for
    gem, sudo and brew in front of the real ones, plus a canary, a static
    scan for commands that can damage the machine, a scan for mid-test bare !
    negations that bats never checks, and one-pass scanners for duplicate
    @test names and @test text inside heredocs.

Changed

  • Every .bats file is machine-independent. Fixtures live in
    tests/fixtures/; the root-ownership tests build their own tree and stand in
    for root with RGH_ROOT_USER; the container-runtime test puts failing shims
    first on PATH instead of deleting a working one; the shebang test creates a
    real interpreter. The one test that asserted the state of this machine was
    removed from bats - that check still runs, through rgh_report.
  • make lint uses shellcheck -x, matching CI exactly. Without -x the
    local target and the CI step were not the same command.
  • CI runners are pinned to ubuntu-24.04 and macos-15 with
    timeout-minutes: 15, because the pinned apt package versions
    (shellcheck=0.9.0-1, shfmt=3.8.0-1, bats=1.10.0-1) only exist on the
    distribution they were taken from. strategy.fail-fast is false, so a
    failure on one OS no longer hides the other.