docs: remove references to anything outside this repository
This repository is public and stands alone. Comments and prose no longer describe another repository, its documents, hosts, network or runner sizing; each one states its own reason or is gone. - Workflow headers keep the conclusions (disposable runner with no outside secret, the if: guard is not a boundary, no fork pull requests, the image build's memory cap) and drop the description. - Isolation lines are worded as a property of this repository. - The denied image namespace stays in check_image_versions.py, described only as a namespace this repository's CI must not use. - CLAUDE.md and CONTRIBUTING.md gain the standing rule and the search to run when bringing content in from another repository. - ci image 0.2.29 -> 0.2.30: .pre-commit-config.yaml and requirements-dev.txt are image inputs. The ADR 0004 pointers, the README Roadmap, the skills-source mentions and released changelog entries stay as they are. Closes #108 Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
1 parent
ef0a1010f3
commit
3384ff2836
19 files changed
+83
-71
No files matched your search
@@ -129,9 +129,9 @@ class PureTest(unittest.TestCase):
|
||||
def matrix(self, mol="0.1.0", ci="0.2.0"):
|
||||
return civ.matrix_of(IMAGE_YML.format(mol=mol, ci=ci))
|
||||
|
||||
def test_foreign_production_images_are_denied(self):
|
||||
def test_images_of_the_denied_namespace_are_refused(self):
|
||||
for text in (
|
||||
"image: git.rkdr.net/defame1297/gitea-ansible-runner:1@sha256:" + "a" * 64,
|
||||
"image: git.rkdr.net/defame1297/some-image:1@sha256:" + "a" * 64,
|
||||
"# GIT.RKDR.NET:443/Defame1297/x",
|
||||
"image: git.rkdr.net/defame1297/y",
|
||||
):
|
||||
@@ -139,10 +139,20 @@ class PureTest(unittest.TestCase):
|
||||
for text in (
|
||||
"image: git.rkdr.net/mortis/ci:0.2.0",
|
||||
"https://git.rkdr.net/defame1297x",
|
||||
"see Defame1297/ansible-homelab-mono",
|
||||
"see Defame1297/some-repository",
|
||||
):
|
||||
self.assertEqual(civ.check_foreign_images({"w.yml": text}), [], text)
|
||||
|
||||
def test_the_refusal_names_the_namespace_and_nothing_about_its_use(self):
|
||||
(message,) = civ.check_foreign_images(
|
||||
{"w.yml": "image: git.rkdr.net/defame1297/y"}
|
||||
)
|
||||
self.assertEqual(
|
||||
message,
|
||||
"w.yml: mentions git.rkdr.net/defame1297/, an image namespace this repository's CI "
|
||||
"must not use or name",
|
||||
)
|
||||
|
||||
def test_pins_ok_and_lagging(self):
|
||||
pin = f"image: git.rkdr.net/mortis/ci:0.1.0@{DIGEST}\n"
|
||||
self.assertEqual(civ.check_pins(self.matrix(), {"lint.yml": pin}), [])
|
||||
@@ -717,7 +727,7 @@ class GitTest(unittest.TestCase):
|
||||
self.assertIn(text, err)
|
||||
self.assertEqual(len(err.strip().splitlines()), 1, err)
|
||||
|
||||
def test_pins_cli_denies_a_production_image_in_any_workflow(self):
|
||||
def test_pins_cli_refuses_the_denied_namespace_in_any_workflow(self):
|
||||
self.write(".gitea/workflows/lint.yml", "name: Lint\n")
|
||||
self.assertEqual(self.bump_args("pins")[0], 0)
|
||||
self.write(
|
||||
|
||||
Reference in new issue
Block a user