docs(contributing): complete the settings checklist in maintaining.md
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m8s
Molecule / molecule (pull_request) Successful in 3s

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
This commit is contained in:
Defame1297 committed 2026-11-24 17:15:02 +00:00
1 parent dbe8d5d988
commit 084bddcae9
1 file changed
+14 -12
+14 -12
View File
@@ -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_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 | | `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 | | `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 - **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.** 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 ## Agent and bot accounts
- **Only the maintainer creates 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. *Reason:* every account on this forge is then one the maintainer knows.
*Held by:* control (self-registration is off). *Held by:* aspirational.
- **An agent account names its one accountable person in its Gitea profile.** - **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. *Reason:* every change has a human who answers for it, and an agent is not that human.
*Held by:* aspirational. *Held by:* aspirational.
@@ -53,15 +53,17 @@ Every secret the workflows in [.gitea/workflows/](../../.gitea/workflows/) refer
## Intended settings ## Intended settings
What the repository and organisation settings should be. The maintainer applies them; check them A checklist, not rules: what the repository and organisation settings should be. The maintainer
here after any change. applies them and checks them against this list after any change.
- Branch protection on `main`: required checks Lint, Build and Molecule; zero required approvals; - 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 "Require approval from code owners"; "Dismiss stale approvals"; block on rejected and on official
maintainer. 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. - Merge allowlist on `main`: the maintainer, each trusted contributor and the Renovate bot.
- Push allowlist on `release/*`; no rule for `renovate/*`. - Push allowlist on `release/*`: the maintainer; no rule for `renovate/*`.
- Tag protection on `v*`. - 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 - 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. requests write and Actions read, so it cannot approve fork runs.
- Wiki off. - Wiki off.
@@ -71,10 +73,12 @@ here after any change.
## Releases ## 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 - **The maintainer cuts a release by hand: an annotated tag `vX.Y.Z` on `main`, equal to the version
in `galaxy.yml`.** in `galaxy.yml`.**
*Reason:* consumers install by tag, so a tag is the release. *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.** - **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. *Reason:* the nightly is the only run of the scenarios a pull request's diff did not select.
*Held by:* aspirational. *Held by:* aspirational.
@@ -82,5 +86,3 @@ here after any change.
and release only once it succeeds.** and release only once it succeeds.**
*Reason:* a release must not ship drift the nightly has seen. *Reason:* a release must not ship drift the nightly has seen.
*Held by:* aspirational. *Held by:* aspirational.
A **full run** is a `schedule` or `workflow_dispatch` run of `molecule.yml` on `main`.