diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2a933c3..d69babf 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -2,3 +2,14 @@ /.coderabbit.yaml @acgetchell /.coderabbit.yml @acgetchell /.github/** @acgetchell + +# Exact routine dependency-update targets use the normal one-approval rule. +# Empty owners let the verified shared Dependabot approval count for these paths. +# The approval workflow itself retains the human owner assigned above. +/.github/actions/setup-just/action.yml +/.github/workflows/ci.yml +/.github/workflows/codeql.yml +/.github/workflows/gitleaks.yml +/.github/workflows/osv.yml +/.github/workflows/papers.yml +/.github/workflows/zizmor.yml diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 807ae4e..74030df 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -51,10 +51,15 @@ protection also blocks CodeQL error-level alerts and high or critical security alerts; a successful analysis job alone does not mean its findings are accepted. The hosted ruleset requires CODEOWNER approval for `.coderabbit.yaml`, -`.coderabbit.yml`, and `.github/**`, including CODEOWNERS itself. Paper files -have no human ownership requirement, so eligible paper PRs can still receive -CodeRabbit approval and use native auto-merge. GitHub evaluates ownership from -the base branch; a PR cannot remove its own required owner by editing the file. +`.coderabbit.yml`, and GitHub controls, including CODEOWNERS, settings snapshots, +and the Dependabot approval workflow. Exact routine workflow and setup-action +paths are exempted in [CODEOWNERS](.github/CODEOWNERS), allowing verified +Dependabot approvals to satisfy the normal one-approval rule. Ordinary workflow +PRs still need manual review because CodeRabbit automatic approval is disabled +for `.github/**` and the shared approval job only accepts verified Dependabot PRs. +Paper files have no human ownership requirement, so eligible paper PRs can still +receive CodeRabbit approval and use native auto-merge. GitHub evaluates ownership +from the base branch; a PR cannot remove its own required owner by editing the file. ## Explicit writes @@ -89,8 +94,8 @@ Workflows use read-only permissions by default and pinned external actions. Dependabot proposes Actions updates. The pinned shared approval workflow verifies Dependabot identity, signed commits, exact changed-file policy, and the current head before approving and enabling native auto-merge. Required -checks, resolved threads, and human CODEOWNER review still apply; an Actions -approval does not satisfy the human owner requirement for `.github/**`. +checks and resolved threads still apply. Routine dependency-update paths accept +that approval; changes to owned policy files still require human CODEOWNER review. Hosted uv updates are paused because Dependabot rejects the inherited Python 3.15 baseline. Use `just update-python-dependencies` and `just ci` for Python diff --git a/docs/SECURING.md b/docs/SECURING.md index 93ebf0a..4801fbc 100644 --- a/docs/SECURING.md +++ b/docs/SECURING.md @@ -30,11 +30,24 @@ policy files document the expected configuration and validate workflow changes. The hosted `require_code_owner_review` rule and the CODEOWNERS file on `main` require `@acgetchell` to approve changes to either root CodeRabbit configuration -filename and to `.github/**`. This includes CODEOWNERS itself and the committed -settings snapshots. GitHub uses the base branch's ownership file, so changing -or deleting the ownership mapping in a PR does not remove its required review. -The hosted rule is managed by a repository administrator, independently of -PR-controlled CodeRabbit approval settings. +filename and to GitHub controls by default. This includes CODEOWNERS itself, +committed settings snapshots, Dependabot configuration, and the Dependabot +approval workflow. Exact routine workflow and setup-action paths have empty +owners in CODEOWNERS, so the verified shared Dependabot approval can satisfy +their normal one-approval requirement. Unknown GitHub paths remain owned. + +These path exceptions apply to every author. Ordinary workflow PRs still need +manual review: CodeRabbit automatic approval remains disabled for `.github/**`, +and the shared approval job only accepts verified Dependabot updates. Updates +to the approval workflow itself still require human ownership review, even +when proposed by Dependabot. No application gets a ruleset bypass. + +GitHub uses the base branch's ownership file, so changing or deleting the +ownership mapping in a PR does not remove its required review. The exceptions +take effect after the CODEOWNERS change merges into `main`; affected Dependabot +PRs must then be current with `main` and pass the required checks. The hosted +rule is managed by a repository administrator, independently of PR-controlled +CodeRabbit approval settings. Paper files have no CODEOWNER entry. Their existing one-approval requirement can still be satisfied by CodeRabbit, subject to its low merge-risk policy and @@ -100,7 +113,8 @@ Its `reviews.auto_approvals.enabled` setting requests changes for blocking findings and approves after required threads are resolved, the latest commit is reviewed, its pre-merge checks pass, and merge risk is at most `low`. PRs changing `.github/**` are excluded from automatic approval and require -human review. The security-risk cap is not configured because the current +manual review, except verified Dependabot updates approved by the shared job. +The security-risk cap is not configured because the current Essentials plan does not provide the required assessment; configuring it would withhold approvals. See CodeRabbit's [approval risk limits](https://docs.coderabbit.ai/pr-reviews/approval-risk-limits). @@ -135,9 +149,9 @@ not a required check because it intentionally skips ordinary PRs. The hosted Actions allowlist includes the shared reusable workflow and its pinned `dependabot/fetch-metadata` action. Default tokens remain read-only; write permissions are limited to the approval job. Its bot approval cannot -replace `@acgetchell`'s owner approval for GitHub controls. The caller becomes -active after merging into `main`; a later Dependabot open, reopen, or push event -uses it. Rerunning an older job does not load a newly deployed caller. +replace `@acgetchell`'s owner approval for owned policy files. The caller is +active on `main`; Dependabot open, reopen, or push events use that trusted +base-branch policy. Rerunning an older job does not load a newly deployed caller. ## Applying settings