From 6da8ef8ebdc1e3d96e7c3d689f25bb5cc0c02628 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Wed, 8 Jul 2026 16:11:52 -0700 Subject: [PATCH] spec: list CODECOV_TOKEN for csharp/python repos; document coverage policy typeMechanisms already mandates codecov for every csharp/python repo; make that explicit in the registry so the required secret is auditable per repo. - requiredSecrets += CODECOV_TOKEN on all 10 csharp/python repos (Utilities, LanguageTags, MediaTools, PlexCleaner, PhotoCleaner, AudioCleaner, NxWitness, aiopurpleair, homeassistant-purpleair, Financial-Modeling). - secrets.json codecov mechanism: note that it is listed (unlike implicit baseline secrets), coverage upload is report-only by default, and only aiopurpleair + homeassistant-purpleair enforce a 99%+ threshold. - Annotate both purpleair entries with the 99%+ coverage gate. Spec validation passes (21 cataloged, 0 backlog). Co-Authored-By: Claude Opus 4.8 (1M context) --- registry/repos.json | 25 +++++++++++++------------ spec/secrets.json | 3 ++- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/registry/repos.json b/registry/repos.json index 64f3a4583..034296fd7 100644 --- a/registry/repos.json +++ b/registry/repos.json @@ -28,7 +28,7 @@ "groundTruthBranch": "main", "hasDevelop": true, "publish": [{ "target": "nuget", "mechanism": "oidc" }], - "requiredSecrets": ["NUGET_USERNAME"], + "requiredSecrets": ["NUGET_USERNAME", "CODECOV_TOKEN"], "consumerModel": "pull", "releaseTrigger": "two-phase", "configLayout": { "rulesetsDir": "repo-config", "pythonConfig": null }, @@ -42,7 +42,7 @@ "groundTruthBranch": "main", "hasDevelop": true, "publish": [{ "target": "nuget", "mechanism": "oidc" }], - "requiredSecrets": ["NUGET_USERNAME"], + "requiredSecrets": ["NUGET_USERNAME", "CODECOV_TOKEN"], "consumerModel": "pull", "releaseTrigger": "two-phase", "configLayout": { "rulesetsDir": "repo-config", "pythonConfig": null }, @@ -56,11 +56,11 @@ "groundTruthBranch": "main", "hasDevelop": true, "publish": [{ "target": "pypi", "mechanism": "oidc" }], - "requiredSecrets": [], + "requiredSecrets": ["CODECOV_TOKEN"], "consumerModel": "pull", "releaseTrigger": "publish-on-merge", "configLayout": { "rulesetsDir": "repo-config", "pythonConfig": "pyproject.toml" }, - "driftNotes": [] + "driftNotes": ["Enforces a 99%+ coverage threshold, beyond the fleet's report-only codecov default."] }, { "name": "homeassistant-purpleair", @@ -70,12 +70,13 @@ "groundTruthBranch": "main", "hasDevelop": true, "publish": [{ "target": "github-release", "mechanism": "none" }], - "requiredSecrets": [], + "requiredSecrets": ["CODECOV_TOKEN"], "consumerModel": "push", "releaseTrigger": "dispatch-only", "configLayout": { "rulesetsDir": "repo-config", "pythonConfig": "standalone" }, "driftNotes": [ - "ruff/pyright in standalone .ruff.toml + pyrightconfig.json instead of pyproject.toml (canonicalize)." + "ruff/pyright in standalone .ruff.toml + pyrightconfig.json instead of pyproject.toml (canonicalize).", + "Enforces a 99%+ coverage threshold, beyond the fleet's report-only codecov default." ] }, { @@ -86,7 +87,7 @@ "groundTruthBranch": "main", "hasDevelop": true, "publish": [], - "requiredSecrets": [], + "requiredSecrets": ["CODECOV_TOKEN"], "consumerModel": "pull", "releaseTrigger": "none", "configLayout": { "pythonConfig": "pyproject.toml" }, @@ -107,7 +108,7 @@ { "target": "docker", "mechanism": "static-secret" }, { "target": "github-release", "mechanism": "none" } ], - "requiredSecrets": ["DOCKER_HUB_USERNAME", "DOCKER_HUB_ACCESS_TOKEN"], + "requiredSecrets": ["DOCKER_HUB_USERNAME", "DOCKER_HUB_ACCESS_TOKEN", "CODECOV_TOKEN"], "consumerModel": "pull", "releaseTrigger": "two-phase", "configLayout": { "rulesetsDir": "repo-config", "pythonConfig": null }, @@ -149,7 +150,7 @@ "groundTruthBranch": "main", "hasDevelop": true, "publish": [{ "target": "docker", "mechanism": "static-secret" }, { "target": "github-release", "mechanism": "none" }], - "requiredSecrets": ["DOCKER_HUB_USERNAME", "DOCKER_HUB_ACCESS_TOKEN"], + "requiredSecrets": ["DOCKER_HUB_USERNAME", "DOCKER_HUB_ACCESS_TOKEN", "CODECOV_TOKEN"], "consumerModel": "pull", "releaseTrigger": "two-phase", "driftNotes": ["Docker image wrapping upstream Nx products; C# (CreateMatrix) is the codegen generator, not a shipped package (IsPackable=false, no nuget push).", "Release is the two-phase model (weekly schedule + workflow_dispatch publish; ordinary merges do not) plus an extra Make/Matrix.json path-scoped push that republishes when the codegen version pin bumps.", "Docker Hub README published per-image via a Matrix.json-derived matrix.", "Branch hygiene: 3 stale Dependabot nuget branches (PRs closed/superseded) linger, safe to delete; main+develop otherwise clean after the 2026-07 sweep."] @@ -240,7 +241,7 @@ "groundTruthBranch": "develop", "hasDevelop": true, "publish": [], - "requiredSecrets": [], + "requiredSecrets": ["CODECOV_TOKEN"], "consumerModel": "pull", "releaseTrigger": "none", "driftNotes": ["Work-in-progress: pre-CI (no .github/workflows, no version.json, no repo-config).", "Non-conformant: default/only branch is 'develop', no 'main' - must create main (should never be permanent).", "Dockerfile present but no docker build/push workflow, so no publish wired."] @@ -253,7 +254,7 @@ "groundTruthBranch": "main", "hasDevelop": true, "publish": [{ "target": "nuget", "mechanism": "oidc" }], - "requiredSecrets": ["NUGET_USERNAME"], + "requiredSecrets": ["NUGET_USERNAME", "CODECOV_TOKEN"], "consumerModel": "pull", "releaseTrigger": "two-phase", "driftNotes": ["Rulesets applied from the hub canonical repo-config/, not committed in-repo (no repo-config/ directory), as with NxWitness.", "No WORKFLOW.md sibling doc (pending fleet-wide ratification, ptr727/ProjectTemplate#223); workflow comments carry the rationale inline."] @@ -266,7 +267,7 @@ "groundTruthBranch": "main", "hasDevelop": true, "publish": [], - "requiredSecrets": [], + "requiredSecrets": ["CODECOV_TOKEN"], "consumerModel": "pull", "releaseTrigger": "none", "driftNotes": ["Work-in-progress: pre-CI (no .github/workflows, no version.json, no repo-config). main+develop both exist."] diff --git a/spec/secrets.json b/spec/secrets.json index f38c97da5..f91ae83a2 100644 --- a/spec/secrets.json +++ b/spec/secrets.json @@ -35,7 +35,8 @@ "requires": ["CODECOV_TOKEN"], "forbids": [], "workflowNeeds": ["codecov/codecov-action"], - "stores": ["actions"] + "stores": ["actions"], + "note": "A csharp or python repo lists CODECOV_TOKEN in its registry requiredSecrets (unlike the implicit baseline secrets). Coverage upload is report-only by default (fail_ci_if_error: false, so a Codecov hiccup never fails the gate); only aiopurpleair and homeassistant-purpleair enforce a 99%+ coverage threshold." } }, "targetMechanisms": {