feat: wire the forge into the factory #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "forge-and-vault"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Outcome
The factory can drive git.dataverket.org as the operator: repositories, branch protection, tag protection, pull requests, Actions secrets, and runner registration, all through the
forgejoswamp model with a scoped token read from a vault the factory can open unattended.What changed
models/@thomas/forgejo/forgejo.yaml: the pulled community model, token viavault.get.extensions/models/forgejo_actions.ts(+ tests):tag_protection_ensure,actions_secret_put(write-only),runner_registration_token(token stored in the vault, never in data).vaults/forgejo.enc.json,.sops.yaml,vaults/@zocc/sops-age/: SOPS-encrypted secrets, recipients = factory age key + attester YubiKey.Already applied on the forge with this code:
dataverket/fabrikkanddataverket/miljocreated,mainpull-request only,attestation/*pushable bybeddarionly.Protected paths
Touches
models/,extensions/,README.md. No factory run behind this PR: it is the change that makes the pull-request stage possible.Test plan
~/.swamp/deno/deno test --allow-all extensions/models/(38 passing)swamp model method run forgejo tag_protection_ensure ...twice: created, then unchanged