From 5b3e8419a4452b5bd726f364e4daddbd6395cb64 Mon Sep 17 00:00:00 2001 From: Gopal Lal Date: Fri, 22 May 2026 08:37:44 +0530 Subject: [PATCH] chore(ci): expand CODEOWNERS to cover Cargo + dependency-policy files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original CODEOWNERS (PR #37) covered only .github/workflows/ and the CODEOWNERS file itself. Audit flagged that Cargo manifests + the license-policy gate are security-relevant and should also require team review. Adds ownership rules for: - .github/dependabot.yml — dependency-update automation config - .github/actions/ — composite actions (setup-jfrog etc.) - /Cargo.toml + /Cargo.lock — top-level crate graph - /deny.toml — cargo-deny license / advisory policy gate - /about.toml — attribution-page source - /pyo3/Cargo.toml + /pyo3/pyproject.toml — PyO3 sub-crate manifests (pip dep changes flow through pyproject.toml per go/pinning-python-deps) Also rewrites the file with explanatory comments + a note on the last-match-wins semantics so future editors understand the rule ordering. The expanded ownership is enforced by the protect-main ruleset's `require_code_owner_review` rule (already on). Co-authored-by: Isaac Signed-off-by: Gopal Lal --- .github/CODEOWNERS | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8bae6347..cb752808 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,29 @@ -# Require review for changes to GitHub Actions workflows and CI configuration -.github/workflows/ @databricks/eng-oss-sql-driver -.github/CODEOWNERS @databricks/eng-oss-sql-driver +# CODEOWNERS for databricks-sql-kernel. +# +# Patterns are evaluated bottom-to-top per GitHub semantics: the LAST +# matching rule wins. Keep more-specific rules below more-general ones. +# +# All paths below require review from @databricks/eng-oss-sql-driver +# (enforced by the `protect-main` ruleset's `require_code_owner_review` +# rule). The team can sub-delegate review via informal channels; the +# CODEOWNERS file enforces the gate. + +# CI workflows and CI configuration. +.github/workflows/ @databricks/eng-oss-sql-driver +.github/dependabot.yml @databricks/eng-oss-sql-driver +.github/actions/ @databricks/eng-oss-sql-driver + +# Self-referential: CODEOWNERS edits require team approval (prevents +# silent weakening of the rule set). +.github/CODEOWNERS @databricks/eng-oss-sql-driver + +# Cargo dependency graph + license-policy gate. Adding a new crate +# or relaxing license rules is a security-relevant change. +/Cargo.toml @databricks/eng-oss-sql-driver +/Cargo.lock @databricks/eng-oss-sql-driver +/deny.toml @databricks/eng-oss-sql-driver +/about.toml @databricks/eng-oss-sql-driver + +# PyO3 sub-crate manifests — pip / Python dep changes flow through here. +/pyo3/Cargo.toml @databricks/eng-oss-sql-driver +/pyo3/pyproject.toml @databricks/eng-oss-sql-driver