Spaces:
Running
Running
FloWeinert commited on
Commit Β·
e33dca6
1
Parent(s): a536685
docs: add github-security-posture per decode-ai-standards
Browse files
docs/github-security-posture.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GitHub Security Posture β `project-calendar`
|
| 2 |
+
|
| 3 |
+
Per [decode-ai-standards](https://github.com/implicitdiagnosticsandsolutions/decode-ai-standards) C11 + C36. This file documents what's enabled, what isn't, and the branch mapping for this repo.
|
| 4 |
+
|
| 5 |
+
## Branch model
|
| 6 |
+
|
| 7 |
+
| Role | Branch name | Notes |
|
| 8 |
+
|---|---|---|
|
| 9 |
+
| **Production** | `main` | Protected. Push restricted to code reviewers. |
|
| 10 |
+
| **Staging** | `staging` | Protected. Push restricted to code reviewers. |
|
| 11 |
+
| **Working** (dev) | `dev` | Protected. Default branch. Devs PR feature branches here. |
|
| 12 |
+
|
| 13 |
+
Per decode-ai-standards, the mapping is: `dev β dev`, `staging β staging`, `main β prod`.
|
| 14 |
+
|
| 15 |
+
## Admins
|
| 16 |
+
|
| 17 |
+
| Role | User |
|
| 18 |
+
|---|---|
|
| 19 |
+
| Primary admin | `@FloWeinert` |
|
| 20 |
+
| Backup admin | `@matussekatdecode` |
|
| 21 |
+
| Additional admins | (none) |
|
| 22 |
+
|
| 23 |
+
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).
|
| 24 |
+
|
| 25 |
+
## Code reviewers (listed in `.github/CODEOWNERS`)
|
| 26 |
+
|
| 27 |
+
For developer PRs: 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 protected branches (push restriction).
|
| 28 |
+
|
| 29 |
+
- `@matussekatdecode`
|
| 30 |
+
|
| 31 |
+
## Outside collaborators
|
| 32 |
+
|
| 33 |
+
| Login | Permission | Notes |
|
| 34 |
+
|---|---|---|
|
| 35 |
+
| β | β | None on this repo |
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
## Branch protection rules summary
|
| 39 |
+
|
| 40 |
+
All three protected branches (`main`, `staging`, `dev`):
|
| 41 |
+
- β Require pull request before merging (audit trail)
|
| 42 |
+
- β Require 1 CODEOWNER approval (`required_approving_review_count: 1` + `require_code_owner_reviews: true`) β UI nudge for codeowners to actually review developer PRs
|
| 43 |
+
- β Codeowners in `bypass_pull_request_allowances` β they can merge their own PRs without needing self-approval (which GitHub blocks)
|
| 44 |
+
- β Do not allow bypassing the above settings (admins NOT in the bypass list β emergencies use the 4-step deliberate procedure)
|
| 45 |
+
- β Restrict who can push: code reviewers only
|
| 46 |
+
- β Block force-push
|
| 47 |
+
- β Block branch deletion
|
| 48 |
+
|
| 49 |
+
On `main` and `staging` only:
|
| 50 |
+
- β Require linear history
|
| 51 |
+
|
| 52 |
+
## Change log
|
| 53 |
+
|
| 54 |
+
| Date | Change | By |
|
| 55 |
+
|---|---|---|
|
| 56 |
+
| 2026-MM-DD | Initial posture created during org restructure | FloWeinert (applied via `scripts/apply-per-repo.py`) |
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
*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.*
|