# GitHub Security Posture — `project-calendar` Per [decode-ai-standards](https://github.com/implicitdiagnosticsandsolutions/decode-ai-standards) `C11` + `C36`, reapplied at standards ref `81c3f17` ("Document the slim-to-full branch model adoption path", 2026-05-14). ## Branch model in use: **slim** This repo uses the **slim** branch model: only the current default branch is protected. The default and only protected branch is `main`. There is no `dev` or `staging` branch in this repository. Slim is the standards-named valid steady state for repositories with a single primary contributor, no separate deploy environment, and continuous release. `project-calendar` matches that shape: one primary contributor, one production environment (Hugging Face Space `DecodeMarketing/projektkalender`), and every merge to `main` ships. | Role | Branch name | Status | Notes | |---|---|---|---| | **Production / default** | `main` | Protected | Push restricted to code reviewers. Pushing triggers `.github/workflows/main.yml` (HF Spaces sync). | | Staging | — | Not in use | Would only be created during a deliberate slim → full migration. | | Development base | — | Not in use | Same as above. Feature branches PR directly into `main`. | ### Adoption signal The standards (`81c3f17`) say the full three-branch model is worth adopting when: multiple contributors merge in parallel, batched releases are needed, a staging environment receives changes before prod, or stakeholders need a pre-prod review env. None apply here today. If two of those become true, follow the migration steps in `decode-ai-standards` `docs/ai-centric-repository-guidelines.md` (section "Adopting the full three-branch model"). ## Admins | Role | User | |---|---| | Primary admin | `@FloWeinert` | | Backup admin | `@matussekatdecode` | | Additional admins | (none) | Admins configure branch protection, secrets, and webhooks. **Admins are NOT in the push-restriction list** and "Do not allow bypassing" is enabled — admin merges go through the same PR + review flow as everyone else. Emergency bypass requires deliberate rule-edit (audited org-wide). ## Code reviewers (listed in `.github/CODEOWNERS`) For developer PRs into `main`: their approval is required (`require_code_owner_reviews: true` + `required_approving_review_count: 1`). For their own PRs: they bypass the approval requirement via `bypass_pull_request_allowances` and self-merge (since GitHub blocks self-approval). They're also the only ones who can click Merge on `main` (push restriction). - `@matussekatdecode` Because the sole codeowner is also the sole primary contributor today, the bypass-and-self-merge path is the normal path. This is documented openly rather than hidden; the convention to **still open a PR** even though bypass would allow a direct push (per standards `Codeowner bypass: scope and convention`) is what preserves the audit trail. ## Outside collaborators | Login | Permission | Notes | |---|---|---| | — | — | None on this repo | ## Branch protection rules summary (`main` only) - ✓ Require pull request before merging (audit trail) - ✓ Require 1 CODEOWNER approval (`required_approving_review_count: 1` + `require_code_owner_reviews: true`) - ✓ Codeowners in `bypass_pull_request_allowances` — they can merge their own PRs without needing self-approval (which GitHub blocks) - ✓ Do not allow bypassing the above settings (admins NOT in the bypass list — emergencies use the 4-step deliberate procedure) - ✓ Restrict who can push: code reviewers only - ✓ Block force-push - ✓ Block branch deletion - ✓ Require linear history No protections are configured on any branch other than `main`. ## Change log | Date | Change | By | |---|---|---| | 2026-05-13 | Initial posture created (full-model template absorbed) | matussekatdecode | | 2026-05-20 | Rewrote posture to reflect actual slim-mode reality; cited standards ref `81c3f17` as authority for slim being a valid steady state | matussekatdecode (Slice 7: Standards Reapplication) | --- *This file is checked into the repo so any change requires a PR — the protection model is self-protecting via the `.github/CODEOWNERS` lockdown rule on this file.*