fix(ci): drop the stale 3x-ui whitelist entry and the wrong helper name (T43)
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.
This commit is contained in:
1 parent
39e1887d78
commit
3fb1f3ca6e
2 files changed
+10
-6
No files matched your search
@@ -5,7 +5,7 @@ repos:
|
||||
name: nixos flake invariant checks
|
||||
description: |
|
||||
Runs .ci/checks.sh: sops path_regex compliance, no
|
||||
`:latest` in container images (with R1.5/R1.8 whitelist),
|
||||
`: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
|
||||
|
||||
Reference in new issue
Block a user