feat(ci): backend handles for runs, CI settings and organization secrets
- Repo.ci() lists runs, opens one run with its jobs and logs, streams events, and starts, approves, rejects and cancels. - RepoSettings.ci holds secrets, environments and protected branches. - Refs.namespaceSecrets() holds organization secrets for owners and admins.
1 decision
Only a person can approve a job or change CI secrets and settings. An agent cannot.
Why
- An agent could otherwise give its own runs secrets or remove the approval that holds its deploys
Touches
policy.tsci.ts
11 files changed · +440 −3
apps/backend/contract/ci.ts+102 −0
apps/backend/contract/handles.ts+5 −0
apps/backend/contract/index.ts+1 −0
apps/backend/contract/views.ts+1 −1
apps/backend/handles/ci.ts+292 −0
apps/backend/handles/pull.ts+4 −0
apps/backend/handles/refs.ts+7 −1
apps/backend/handles/repo.ts+5 −0
apps/backend/policy.ts+5 −0
apps/backend/test/tenancy.test.ts+17 −0
apps/frontend/root.tsx+1 −1