Repair Gitea Actions bootstrap and module matrix
Dependency Audit / dependency-audit (push) Successful in 2m28s
Deployment Installer / deployment-installer (push) Successful in 7s
Security Audit / security-audit (push) Failing after 10m36s

This commit is contained in:
2026-07-31 05:57:33 +02:00
parent f1fd143ef5
commit ba82a85547
6 changed files with 113 additions and 1 deletions
+29
View File
@@ -359,6 +359,35 @@ class RepositoryBootstrapTests(unittest.TestCase):
self.assertEqual(1, status)
runner.assert_not_called()
def test_anonymous_ci_bootstrap_excludes_registered_transport_repositories(
self,
) -> None:
manifest = json.loads(
(META_ROOT / "repositories.json").read_text(encoding="utf-8")
)
registered_only = {
entry["name"]
for entry in manifest["repositories"]
if entry.get("bootstrap_transport") == "registered"
}
self.assertTrue(registered_only)
for workflow in sorted(
(META_ROOT / ".gitea" / "workflows").glob("*.yml")
):
contents = workflow.read_text(encoding="utf-8")
if (
"bootstrap-repositories.py" not in contents
or "--transport public-https" not in contents
):
continue
with self.subTest(workflow=workflow.name):
for repository in registered_only:
self.assertIn(
f"--exclude-repo {repository}",
contents,
)
if __name__ == "__main__":
unittest.main()