Check #1 allows `:latest` images listed in LATEST_ALLOWLIST. The list still carried `ghcr.io/mhsanaei/3x-ui:latest` with the comment "panel frozen on :latest", but the panel has been pinned to `ghcr.io/mhsanaei/3x-ui:v3.10.2` since 2026-10-20 (modules/containers/3x-ui.nix:62, R1.5). The entry matched nothing, and the comment stated the opposite of the invariant it cited. Consequence of the stale entry: if someone reverted the pin to `:latest`, the check would have stayed green and said nothing. Verified by mutation — with v3.10.2 temporarily replaced by :latest the check now reports "Images using :latest (not in whitelist): ghcr.io/mhsanaei/3x-ui:latest"; before this commit the same mutation passed silently. Also: check #4's description named `mkServiceStorage`, while the guard the consumers actually call is `mkStorageGuard` (lib/xlib/helpers.nix:180). Both names exist in that file and mean different things, so the comment pointed at the wrong helper. Now it names the right one and says so explicitly. `bash .ci/checks.sh --no-build` -> PASS 3 / FAIL 0, before and after; the current tree contains exactly two `:latest` images, both tape-rotation, both still whitelisted. Not pushed.
14 lines
450 B
YAML
14 lines
450 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: nixos-flake-checks
|
|
name: nixos flake invariant checks
|
|
description: |
|
|
Runs .ci/checks.sh: sops path_regex compliance, no
|
|
`:latest` in container images (whitelist: tape-rotation only),
|
|
and `nix flake check` (skippable via --no-build).
|
|
entry: bash .ci/checks.sh --no-build
|
|
language: script
|
|
pass_filenames: false
|
|
always_run: true
|