From 359e016307ba81e24476af78d5af2eab154eef62 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sun, 25 Oct 2026 21:08:14 +0000 Subject: [PATCH] feat(scripts): deny the production image set in the Collection's workflows The pins check now fails when any file under .gitea/workflows mentions git.rkdr.net/defame1297/, so the environment repo's production images can never appear in the Collection's CI. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm --- scripts/check_image_versions.py | 17 ++++++++++++++++- tests/scripts/test_check_image_versions.py | 16 ++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/scripts/check_image_versions.py b/scripts/check_image_versions.py index 384aa41..226d36e 100644 --- a/scripts/check_image_versions.py +++ b/scripts/check_image_versions.py @@ -11,7 +11,10 @@ cannot make a tag immutable), so an image whose content changes under an unchang version is pushed as sha-*/latest only, and a hand-pasted @ pin would pair a tag with a digest it does not point to. -pins Every `git.rkdr.net/mortis/:@sha256:` in the consumer +pins No file under .gitea/workflows may mention `git.rkdr.net/defame1297/`: the production + image set of the environment repo never belongs in this CI (the `mortis` side is the + untrusted one, ADR 0004 Runner isolation). + Every `git.rkdr.net/mortis/:@sha256:` in the consumer workflows must name an image of the matrix, with a well-formed digest and a version that is not newer than the matrix (a pin lags the matrix between the PR that bumps the version and the PR that moves the pin; it can never lead it). @@ -59,6 +62,9 @@ PIN_RE = re.compile(r"git\.rkdr\.net/mortis/(?P[a-z0-9._-]+):(?P[ ANY_PIN_RE = re.compile( r"""(?