projektkalender / docs /github-security-posture.md
DecodeMarketing's picture
Claude Opus 4.7 (1M context)
docs: Slice 7 β€” Standards Reapplication 2026-05-20 (#1)
ff2364f unverified
|
Raw History Blame Contribute Delete
4.23 kB

GitHub Security Posture β€” project-calendar

Per 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.