Spaces:
Sleeping
Sleeping
FloWeinert
Claude Opus 4.7 (1M context)
Promote dev to main: restore CODEOWNERS + security-posture doc (#15)
604577b unverified |
Download docs/github-security-posture.md from DecodeMarketing/decode_tools: direct link, hf CLI and curl.
- Browser
- Download file 2.7 kB
-
https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/main/docs/github-security-posture.md
- Command line
-
hf download hf://spaces/DecodeMarketing/decode_tools/docs/github-security-posture.md
-
curl -L -o github-security-posture.md https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/main/docs/github-security-posture.md
2.7 kB
| # GitHub Security Posture β `icat_app` | |
| 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. | |
| ## Branch model | |
| | Role | Branch name | Notes | | |
| |---|---|---| | |
| | **Production** | `main` | Protected. Push restricted to code reviewers. | | |
| | **Staging** | `staging` | Protected. Push restricted to code reviewers. | | |
| | **Working** (dev) | `dev` | Protected. Default branch. Devs PR feature branches here. | | |
| Per decode-ai-standards, the mapping is: `dev β dev`, `staging β staging`, `main β prod`. | |
| ## 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: 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). | |
| - `@matussekatdecode` | |
| ## Outside collaborators | |
| | Login | Permission | Notes | | |
| |---|---|---| | |
| | β | β | None on this repo | | |
| ## Branch protection rules summary | |
| All three protected branches (`main`, `staging`, `dev`): | |
| - β Require pull request before merging (audit trail) | |
| - β Require 1 CODEOWNER approval (`required_approving_review_count: 1` + `require_code_owner_reviews: true`) β UI nudge for codeowners to actually review developer PRs | |
| - β 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 | |
| On `main` and `staging` only: | |
| - β Require linear history | |
| ## Change log | |
| | Date | Change | By | | |
| |---|---|---| | |
| | 2026-MM-DD | Initial posture created during org restructure | FloWeinert (applied via `scripts/apply-per-repo.py`) | | |
| --- | |
| *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.* | |