From 084bddcae9f5303f57252ac98beb4397a970831f Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Tue, 24 Nov 2026 17:15:02 +0000 Subject: [PATCH] docs(contributing): complete the settings checklist in maintaining.md List the remaining decided main protection settings, the tag and release/* allowlist members and the Owners rule; name the workflows that use the job token; hold account creation as aspirational; define a full run before its first use. Assisted-by: Claude Code --- docs/contributing/maintaining.md | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/docs/contributing/maintaining.md b/docs/contributing/maintaining.md index 4ebfe94..3fbf6e2 100644 --- a/docs/contributing/maintaining.md +++ b/docs/contributing/maintaining.md @@ -18,7 +18,7 @@ Every secret the workflows in [.gitea/workflows/](../../.gitea/workflows/) refer | `PACKAGE_PUSH_USER` | `image.yml` | Package push bot | none: the account's login name | Organisation secret | | `PACKAGE_PUSH_TOKEN` | `image.yml` | Package push bot | `write:package` | Token issued on the bot's account in this Gitea; organisation secret | | `RENOVATE_BOT_TOKEN` | `renovate.yml` | Renovate bot | `write:repository`, `write:issue`, `read:package` | Token issued on the bot's account in this Gitea; organisation secret | -| `GITHUB_TOKEN` | every workflow | none: the job token | set per workflow by `permissions:` | Issued by Gitea Actions for each run and expires with it; nothing to rotate | +| `GITHUB_TOKEN` | `build.yml`, `lint.yml`, `molecule.yml`, `image.yml`, `gitea-release-key.yml` | none: the job token | set per workflow by `permissions:` | Issued by Gitea Actions for each run and expires with it; nothing to rotate | - **When a trusted contributor's access is withdrawn, or a secret may have leaked, rotate every secret in the table: issue a new token on the bot's account, replace the secret, then revoke the old token.** @@ -41,8 +41,8 @@ Every secret the workflows in [.gitea/workflows/](../../.gitea/workflows/) refer ## Agent and bot accounts - **Only the maintainer creates agent and bot accounts.** - *Reason:* self-registration is closed, so every account on this forge is one the maintainer knows. - *Held by:* control (self-registration is off). + *Reason:* every account on this forge is then one the maintainer knows. + *Held by:* aspirational. - **An agent account names its one accountable person in its Gitea profile.** *Reason:* every change has a human who answers for it, and an agent is not that human. *Held by:* aspirational. @@ -53,15 +53,17 @@ Every secret the workflows in [.gitea/workflows/](../../.gitea/workflows/) refer ## Intended settings -What the repository and organisation settings should be. The maintainer applies them; check them -here after any change. +A checklist, not rules: what the repository and organisation settings should be. The maintainer +applies them and checks them against this list after any change. - Branch protection on `main`: required checks Lint, Build and Molecule; zero required approvals; - "Require approval from code owners"; "Dismiss stale approvals"; the approvals allowlist is the - maintainer. + "Require approval from code owners"; "Dismiss stale approvals"; block on rejected and on official + review requests; block on an outdated branch; administrators cannot override; the approvals + allowlist is the maintainer. - Merge allowlist on `main`: the maintainer, each trusted contributor and the Renovate bot. -- Push allowlist on `release/*`; no rule for `renovate/*`. -- Tag protection on `v*`. +- Push allowlist on `release/*`: the maintainer; no rule for `renovate/*`. +- Tag protection on `v*`, with the maintainer on its allowlist. +- No bot or agent account in the organisation's Owners team. - The agent account sits in an organisation team on this repository with Code, Issues and Pull requests write and Actions read, so it cannot approve fork runs. - Wiki off. @@ -71,10 +73,12 @@ here after any change. ## Releases +A **full run** is a `schedule` or `workflow_dispatch` run of `molecule.yml` on `main`. + - **The maintainer cuts a release by hand: an annotated tag `vX.Y.Z` on `main`, equal to the version in `galaxy.yml`.** *Reason:* consumers install by tag, so a tag is the release. - *Held by:* control (tag protection on `v*`; Build's release tag check). + *Held by:* control: tag protection on `v*`, and Build's release tag check. - **The maintainer owns triage of a failed full Molecule run; any trusted contributor may fix it.** *Reason:* the nightly is the only run of the scenarios a pull request's diff did not select. *Held by:* aspirational. @@ -82,5 +86,3 @@ here after any change. and release only once it succeeds.** *Reason:* a release must not ship drift the nightly has seen. *Held by:* aspirational. - -A **full run** is a `schedule` or `workflow_dispatch` run of `molecule.yml` on `main`.