| 1 | // The host the flake's protect-e2e check drives: the three states a |
| 2 | // project's refs can be in. "guarded" takes the default protected set, |
| 3 | // "released" names a wildcard pattern beside it, and "open" declares no |
| 4 | // protection at all and so has none. |
| 5 | // |
| 6 | // Which keys act as the "integrator" principal is machine integration |
| 7 | // (services.valley.authorizedKeys), not declared here — the name is what |
| 8 | // the identity registry will bind, and this declaration is what names it. |
| 9 | package valley |
| 10 | |
| 11 | projects: { |
| 12 | "guarded": protection: writers: ["integrator"] |
| 13 | |
| 14 | "released": protection: { |
| 15 | refs: ["refs/heads/main", "refs/heads/release/*"] |
| 16 | writers: ["integrator"] |
| 17 | } |
| 18 | |
| 19 | "open": {} |
| 20 | } |