Public: anyone can read this; nobody can change it.

#16: provision branch protection on .forgejo/workflows/** (+ deploy-key/scoped-token setup) #18

Merged opened this view on origin

Check · Review · Land done · Live — Landed; nothing deploys from this branch, so this is the end of its path.

Merged

Do NOT merge until validated on gc.local (per the #16 plan). Closes plat/mitosis#16. germinate sets protected-file-patterns on app workflows so a non-admin agent can't add a secret-dumping workflow.

Notes

shipped merged

opened this view on origin

Do NOT merge until validated on gc.local (per the #16 plan). Closes plat/mitosis#16. germinate sets protected-file-patterns on app workflows so a non-admin agent can't add a secret-dumping workflow. Note: the protectWorkflows rule-name semantics are Forgejo-version-dependent — gc.local check (d) must confirm an evil-workflow push is actually rejected.

commented

Rebased onto current main (58bd911: python3 flake fix #50, refreshed seed #20, per-domain DNS #12).

Conflict resolution: only bin/germinate conflicted (main added the in-cluster DNS block; this branch added the forgejoSsh override right after the appsDomain block). Resolved to keep both — the DNS block with its own fi, then the forgejoSsh block. flake.nix and genesis/seed.tar.gz took main's versions (the branch does not touch them). bin/lib.sh applied cleanly (append-only).

Rule divergence reconciled: germinate now emits the enforcing rule_name "**" (the branch-matching glob) instead of the inert rule_name "no-agent-workflows". On this Forgejo generation rule_name is the branch-glob AND the URL identifier (confirmed by the dispatcher's protectMain -> PATCH /branch_protections/main); a descriptive name matched a nonexistent branch and never bound. The PATCH convergence URL was updated to /branch_protections/%2A%2A.

Head f45b378, now mergeable. Validating on an isolated valid8c germination before merge.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs