Record current repository settings and branch protection #90

Closed
opened 2026-11-11 22:02:56 +00:00 by Claude · 3 comments
Owner

Part of #87

Question

What are the repository's settings today? Record the facts later tickets depend on:

  • Branch protection on main: required checks, required approvals, push and merge allowlists, protected file patterns, admin enforcement, block on outdated branch.
  • Tag protection for v*.
  • Who has write access; whether self-registration is open on the instance.
  • Actions settings: which secrets exist at repository and organisation level (names only), runner registration scope.
  • Whether issues are open to any signed-in user.

Context

These are described only as prose in CONTRIBUTING.md; their real state has not been checked. An agent may read what its token allows; the rest is a checklist for the maintainer.

Part of #87 ## Question What are the repository's settings today? Record the facts later tickets depend on: - Branch protection on `main`: required checks, required approvals, push and merge allowlists, protected file patterns, admin enforcement, block on outdated branch. - Tag protection for `v*`. - Who has write access; whether self-registration is open on the instance. - Actions settings: which secrets exist at repository and organisation level (names only), runner registration scope. - Whether issues are open to any signed-in user. ## Context These are described only as prose in `CONTRIBUTING.md`; their real state has not been checked. An agent may read what its token allows; the rest is a checklist for the maintainer.
Claude added the
Wayfinder
Task
label 2026-11-11 22:02:56 +00:00
Claude added a new dependency 2026-11-11 22:03:13 +00:00
Defame1297 was assigned by Claude 2026-11-13 15:19:29 +00:00
Author
Owner

Findings so far (read through the agent token, 2026-11-13)

Not yet the resolution: the checklist at the bottom needs the maintainer.

Branch protection, rule main

Setting Value
Direct push disabled for everyone (no push allowlist, deploy keys excluded)
Force push disabled
Required status checks Lint / lint (pull_request), Build / build (pull_request), Molecule / molecule (pull_request)
Required approvals 0
Approvals allowlist enabled, one account (the maintainer)
Merge allowlist disabled: anyone with write access can merge once the checks pass
Dismiss stale approvals yes
Block on rejected review / official review request yes / yes
Block on outdated branch yes
Block on CODEOWNERS review no (there is no CODEOWNERS file)
Admin merge override blocked
Bypass allowlist disabled
Signed commits required no
Protected file patterns not returned by the tool: unknown

There is one rule only; no rule covers other branch patterns.

Repository

  • Public, not archived, not a mirror, no forks.
  • Units enabled: issues, pull requests, Actions, packages, releases, wiki, projects.
  • Merge styles: merge commit (default), squash, fast-forward only. Rebase styles off. Head branch deleted after merge by default.
  • No issue or pull request templates and no CODEOWNERS under .gitea/.
  • Tags present: v1.0.0, v1.1.0, v1.2.0.

Access

  • Self-registration on the instance is disabled (the sign-up page says so). So "any signed-in user" means an account the maintainer created.
  • Assignable accounts, a proxy for write access and not the collaborator list itself: five, namely the maintainer, one further person, the agent account, the package push bot and the Renovate bot.
  • The agent account's token reports admin: true on this repository, with scopes write:issue and write:repository.

Actions

  • Repository-level secrets: none. Repository-level variables: none.
  • Organisation-level secrets and variables: not readable (the token lacks read:organization).
  • Secret names the workflows reference: PACKAGE_PUSH_USER and PACKAGE_PUSH_TOKEN (image.yml only), RENOVATE_BOT_TOKEN (renovate.yml only), and the built-in job token.

Where the prose disagrees with the real state

  • CONTRIBUTING.md says Molecule is not a required check. It is required.
  • CONTRIBUTING.md calls RENOVATE_BOT_TOKEN a repository secret. The repository has no secrets, so it is presumably an organisation secret, visible to every same-repo pull request run.
  • CONTRIBUTING.md says a pull request is required with the Lint and Build checks; that matches, but nothing says approvals are zero.

Checklist for the maintainer

  • Tag protection: is there a rule for v*, and who may create matching tags? (Settings → Tags)
  • Protected file patterns on the main rule, if any.
  • Collaborators and teams with write or admin access, by role. Is the agent account meant to be admin?
  • Organisation Actions secrets and variables, names only. Is RENOVATE_BOT_TOKEN at organisation level?
  • Runner registration scope for kamino-docker and kamino-molecule: repository, organisation or instance.
  • Can any signed-in account open issues and pull requests here, or only collaborators?
  • Actions setting for fork pull request approval (who needs approval before a run).
## Findings so far (read through the agent token, 2026-11-13) Not yet the resolution: the checklist at the bottom needs the maintainer. ### Branch protection, rule `main` | Setting | Value | |---|---| | Direct push | disabled for everyone (no push allowlist, deploy keys excluded) | | Force push | disabled | | Required status checks | `Lint / lint (pull_request)`, `Build / build (pull_request)`, `Molecule / molecule (pull_request)` | | Required approvals | 0 | | Approvals allowlist | enabled, one account (the maintainer) | | Merge allowlist | disabled: anyone with write access can merge once the checks pass | | Dismiss stale approvals | yes | | Block on rejected review / official review request | yes / yes | | Block on outdated branch | yes | | Block on CODEOWNERS review | no (there is no CODEOWNERS file) | | Admin merge override | blocked | | Bypass allowlist | disabled | | Signed commits required | no | | Protected file patterns | not returned by the tool: unknown | There is one rule only; no rule covers other branch patterns. ### Repository - Public, not archived, not a mirror, no forks. - Units enabled: issues, pull requests, Actions, packages, releases, wiki, projects. - Merge styles: merge commit (default), squash, fast-forward only. Rebase styles off. Head branch deleted after merge by default. - No issue or pull request templates and no CODEOWNERS under `.gitea/`. - Tags present: `v1.0.0`, `v1.1.0`, `v1.2.0`. ### Access - Self-registration on the instance is disabled (the sign-up page says so). So "any signed-in user" means an account the maintainer created. - Assignable accounts, a proxy for write access and not the collaborator list itself: five, namely the maintainer, one further person, the agent account, the package push bot and the Renovate bot. - The agent account's token reports `admin: true` on this repository, with scopes `write:issue` and `write:repository`. ### Actions - Repository-level secrets: none. Repository-level variables: none. - Organisation-level secrets and variables: not readable (the token lacks `read:organization`). - Secret names the workflows reference: `PACKAGE_PUSH_USER` and `PACKAGE_PUSH_TOKEN` (`image.yml` only), `RENOVATE_BOT_TOKEN` (`renovate.yml` only), and the built-in job token. ### Where the prose disagrees with the real state - `CONTRIBUTING.md` says Molecule is not a required check. It is required. - `CONTRIBUTING.md` calls `RENOVATE_BOT_TOKEN` a repository secret. The repository has no secrets, so it is presumably an organisation secret, visible to every same-repo pull request run. - `CONTRIBUTING.md` says a pull request is required with the Lint and Build checks; that matches, but nothing says approvals are zero. ### Checklist for the maintainer - [ ] Tag protection: is there a rule for `v*`, and who may create matching tags? (Settings → Tags) - [ ] Protected file patterns on the `main` rule, if any. - [ ] Collaborators and teams with write or admin access, by role. Is the agent account meant to be admin? - [ ] Organisation Actions secrets and variables, names only. Is `RENOVATE_BOT_TOKEN` at organisation level? - [ ] Runner registration scope for `kamino-docker` and `kamino-molecule`: repository, organisation or instance. - [ ] Can any signed-in account open issues and pull requests here, or only collaborators? - [ ] Actions setting for fork pull request approval (who needs approval before a run).
Author
Owner

Resolution (2026-11-13)

The state of the settings today. Read through the agent token where it allowed, the rest reported by the maintainer from the web UI. This supersedes the "Findings so far" comment above.

Branch protection, rule main (the only rule)

Setting Value
Direct push disabled for everyone (no push allowlist, deploy keys excluded)
Force push disabled
Required status checks Lint / lint (pull_request), Build / build (pull_request), Molecule / molecule (pull_request)
Required approvals 0
Approvals allowlist enabled, the maintainer only
Merge allowlist disabled: anyone with write access can merge once the checks pass
Dismiss stale approvals yes
Block on rejected review / official review request yes / yes
Block on outdated branch yes
Block on CODEOWNERS review no (there is no CODEOWNERS file)
Admin merge override blocked
Bypass allowlist disabled
Signed commits required no
Protected file patterns empty
Unprotected file patterns empty

Tag protection

One rule: pattern v*, allowed user the maintainer, no teams.

Repository

  • Public, not archived, not a mirror, no forks.
  • Units enabled: issues, pull requests, Actions, packages, releases, wiki, projects.
  • Merge styles: merge commit (default), squash, fast-forward only. Rebase styles off. Head branch deleted after merge by default.
  • No issue or pull request templates and no CODEOWNERS.

Access

  • Self-registration on the instance is disabled; accounts exist only when the maintainer creates them.
  • One direct collaborator (a contributor), with write permission.
  • One team on the repository: Owners, with owner permission. Its members are the maintainer, the agent account, the package push bot and the Renovate bot. All four are organisation owners, so each is admin on every repository in the organisation. The agent token reports admin: true accordingly.
  • Whether an account that is not a collaborator can open issues and pull requests: not checked. Gitea's default for a public repository is that any signed-in account can. The maintainer does not consider this important, since accounts are maintainer-created.

Actions

  • Repository secrets: none. Repository variables: none. Organisation variables: none.
  • Organisation secrets: PACKAGE_PUSH_USER, PACKAGE_PUSH_TOKEN, RENOVATE_BOT_TOKEN. They are available to every repository in the organisation and to every same-repo pull request run.
  • Workflows that reference them: image.yml (the two push secrets) and renovate.yml (the bot token).
  • One runner (v5.1.0), registered at organisation level, carrying both labels kamino-docker and kamino-molecule. The labels do not separate hosts.
  • Fork pull request approval: the repository's Actions settings page shows no option for it. The behaviour is as measured in Test what a fork pull request can do on this Gitea.

Facts later tickets should pick up

  • Bots and the agent account are organisation owners. Any of those tokens can remove branch and tag protection and read or replace the organisation secrets. The maintainer agrees this should improve. The target belongs to the threat model and the settings recommendation.
  • No file is specially protected. A pull request that passes the three checks can change workflow files, renovate.json and the check scripts, and zero approvals are required, so a contributor with write access can merge their own pull request.
  • A same-repo branch can reference any organisation secret in its own workflow file and the run receives it before review. "Only image.yml may reference them" is a convention; whether a check enforces it was not examined here.
  • One organisation runner executes everything: approved fork runs, the image build with the push credential and the Renovate job.

Where the prose disagrees with the real state

  • CONTRIBUTING.md says Molecule is not a required check. It is required.
  • CONTRIBUTING.md calls RENOVATE_BOT_TOKEN a repository secret. It is an organisation secret.
  • CONTRIBUTING.md says a test showed fork workflows starting without an approval step. The fork test ticket measured the opposite.
  • Nothing in the docs says that required approvals are zero.
## Resolution (2026-11-13) The state of the settings today. Read through the agent token where it allowed, the rest reported by the maintainer from the web UI. This supersedes the "Findings so far" comment above. ### Branch protection, rule `main` (the only rule) | Setting | Value | |---|---| | Direct push | disabled for everyone (no push allowlist, deploy keys excluded) | | Force push | disabled | | Required status checks | `Lint / lint (pull_request)`, `Build / build (pull_request)`, `Molecule / molecule (pull_request)` | | Required approvals | 0 | | Approvals allowlist | enabled, the maintainer only | | Merge allowlist | disabled: anyone with write access can merge once the checks pass | | Dismiss stale approvals | yes | | Block on rejected review / official review request | yes / yes | | Block on outdated branch | yes | | Block on CODEOWNERS review | no (there is no CODEOWNERS file) | | Admin merge override | blocked | | Bypass allowlist | disabled | | Signed commits required | no | | Protected file patterns | empty | | Unprotected file patterns | empty | ### Tag protection One rule: pattern `v*`, allowed user the maintainer, no teams. ### Repository - Public, not archived, not a mirror, no forks. - Units enabled: issues, pull requests, Actions, packages, releases, wiki, projects. - Merge styles: merge commit (default), squash, fast-forward only. Rebase styles off. Head branch deleted after merge by default. - No issue or pull request templates and no CODEOWNERS. ### Access - Self-registration on the instance is disabled; accounts exist only when the maintainer creates them. - One direct collaborator (a contributor), with write permission. - One team on the repository: Owners, with owner permission. Its members are the maintainer, the agent account, the package push bot and the Renovate bot. All four are organisation owners, so each is admin on every repository in the organisation. The agent token reports `admin: true` accordingly. - Whether an account that is not a collaborator can open issues and pull requests: not checked. Gitea's default for a public repository is that any signed-in account can. The maintainer does not consider this important, since accounts are maintainer-created. ### Actions - Repository secrets: none. Repository variables: none. Organisation variables: none. - Organisation secrets: `PACKAGE_PUSH_USER`, `PACKAGE_PUSH_TOKEN`, `RENOVATE_BOT_TOKEN`. They are available to every repository in the organisation and to every same-repo pull request run. - Workflows that reference them: `image.yml` (the two push secrets) and `renovate.yml` (the bot token). - One runner (v5.1.0), registered at organisation level, carrying both labels `kamino-docker` and `kamino-molecule`. The labels do not separate hosts. - Fork pull request approval: the repository's Actions settings page shows no option for it. The behaviour is as measured in [Test what a fork pull request can do on this Gitea](https://git.rkdr.net/Mortis/Kamino/issues/89). ### Facts later tickets should pick up - **Bots and the agent account are organisation owners.** Any of those tokens can remove branch and tag protection and read or replace the organisation secrets. The maintainer agrees this should improve. The target belongs to the threat model and the settings recommendation. - **No file is specially protected.** A pull request that passes the three checks can change workflow files, `renovate.json` and the check scripts, and zero approvals are required, so a contributor with write access can merge their own pull request. - **A same-repo branch can reference any organisation secret** in its own workflow file and the run receives it before review. "Only `image.yml` may reference them" is a convention; whether a check enforces it was not examined here. - **One organisation runner executes everything:** approved fork runs, the image build with the push credential and the Renovate job. ### Where the prose disagrees with the real state - `CONTRIBUTING.md` says Molecule is not a required check. It is required. - `CONTRIBUTING.md` calls `RENOVATE_BOT_TOKEN` a repository secret. It is an organisation secret. - `CONTRIBUTING.md` says a test showed fork workflows starting without an approval step. The fork test ticket measured the opposite. - Nothing in the docs says that required approvals are zero.
Author
Owner

Review of the map (2026-11-15): corrections to this issue.

  • Partly superseded by Resolve stale and contradictory claims. The resolution lists, under "Where the prose disagrees with the real state": "CONTRIBUTING.md says Molecule is not a required check. It is required." That is not what the file says. CONTRIBUTING.md:68-70: Molecule "can be made a required check as well; that is the operator's decision". The later ticket found no conflict there. The rest of the settings record stands; the target settings are in Recommended repository settings and branch protection.
Review of the map (2026-11-15): corrections to this issue. - **Partly superseded by [Resolve stale and contradictory claims](https://git.rkdr.net/Mortis/Kamino/issues/95).** The resolution lists, under "Where the prose disagrees with the real state": "`CONTRIBUTING.md` says Molecule is not a required check. It is required." That is not what the file says. `CONTRIBUTING.md:68-70`: Molecule "can be made a required check as well; that is the operator's decision". The later ticket found no conflict there. The rest of the settings record stands; the target settings are in [Recommended repository settings and branch protection](https://git.rkdr.net/Mortis/Kamino/issues/179).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#90